MCPcopy Create free account
hub / github.com/containerd/nerdctl / ServiceNames

Method ServiceNames

pkg/composer/composer.go:169–178  ·  view source on GitHub ↗

ServiceNames returns service names in dependency order.

(svcs ...string)

Source from the content-addressed store, hash-verified

167
168// ServiceNames returns service names in dependency order.
169func (c *Composer) ServiceNames(svcs ...string) ([]string, error) {
170 var names []string
171 if err := c.project.ForEachService(svcs, func(name string, svc *compose.ServiceConfig) error {
172 names = append(names, svc.Name)
173 return nil
174 }); err != nil {
175 return nil, err
176 }
177 return names, nil
178}

Callers 9

StopMethod · 0.95
KillMethod · 0.95
RemoveMethod · 0.95
DownMethod · 0.95
PauseMethod · 0.95
UnpauseMethod · 0.95
psActionFunction · 0.80
imagesActionFunction · 0.80
topActionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected