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

Method SwarmInit

cli/command/swarm/client_test.go:40–45  ·  view source on GitHub ↗
(_ context.Context, options client.SwarmInitOptions)

Source from the content-addressed store, hash-verified

38}
39
40func (cli *fakeClient) SwarmInit(_ context.Context, options client.SwarmInitOptions) (client.SwarmInitResult, error) {
41 if cli.swarmInitFunc != nil {
42 return cli.swarmInitFunc(options)
43 }
44 return client.SwarmInitResult{}, nil
45}
46
47func (cli *fakeClient) SwarmInspect(context.Context, client.SwarmInspectOptions) (client.SwarmInspectResult, error) {
48 if cli.swarmInspectFunc != nil {

Callers 1

runInitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected