MCPcopy Index your code
hub / github.com/docker/cli / sortServiceByName

Function sortServiceByName

cli/command/stack/remove.go:99–103  ·  view source on GitHub ↗
(services []swarm.Service)

Source from the content-addressed store, hash-verified

97}
98
99func sortServiceByName(services []swarm.Service) func(i, j int) bool {
100 return func(i, j int) bool {
101 return services[i].Spec.Name < services[j].Spec.Name
102 }
103}
104
105func removeServices(ctx context.Context, dockerCLI command.Cli, services []swarm.Service) bool {
106 var hasError bool

Callers 1

removeServicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…