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

Method ServiceRemove

cli/command/stack/client_test.go:139–146  ·  view source on GitHub ↗
(_ context.Context, serviceID string, _ client.ServiceRemoveOptions)

Source from the content-addressed store, hash-verified

137}
138
139func (cli *fakeClient) ServiceRemove(_ context.Context, serviceID string, _ client.ServiceRemoveOptions) (client.ServiceRemoveResult, error) {
140 if cli.serviceRemoveFunc != nil {
141 return cli.serviceRemoveFunc(serviceID)
142 }
143
144 cli.removedServices = append(cli.removedServices, serviceID)
145 return client.ServiceRemoveResult{}, nil
146}
147
148func (cli *fakeClient) NetworkRemove(_ context.Context, networkID string, _ client.NetworkRemoveOptions) (client.NetworkRemoveResult, error) {
149 if cli.networkRemoveFunc != nil {

Callers 2

runRemoveFunction · 0.80
removeServicesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected