MCPcopy Create free account
hub / github.com/docker/cli / SwarmLeave

Method SwarmLeave

cli/command/swarm/client_test.go:68–73  ·  view source on GitHub ↗
(context.Context, client.SwarmLeaveOptions)

Source from the content-addressed store, hash-verified

66}
67
68func (cli *fakeClient) SwarmLeave(context.Context, client.SwarmLeaveOptions) (client.SwarmLeaveResult, error) {
69 if cli.swarmLeaveFunc != nil {
70 return cli.swarmLeaveFunc()
71 }
72 return client.SwarmLeaveResult{}, nil
73}
74
75func (cli *fakeClient) SwarmUpdate(_ context.Context, options client.SwarmUpdateOptions) (client.SwarmUpdateResult, error) {
76 if cli.swarmUpdateFunc != nil {

Callers 1

newLeaveCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected