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

Method NetworkRemove

cli/command/stack/client_test.go:148–155  ·  view source on GitHub ↗
(_ context.Context, networkID string, _ client.NetworkRemoveOptions)

Source from the content-addressed store, hash-verified

146}
147
148func (cli *fakeClient) NetworkRemove(_ context.Context, networkID string, _ client.NetworkRemoveOptions) (client.NetworkRemoveResult, error) {
149 if cli.networkRemoveFunc != nil {
150 return client.NetworkRemoveResult{}, cli.networkRemoveFunc(networkID)
151 }
152
153 cli.removedNetworks = append(cli.removedNetworks, networkID)
154 return client.NetworkRemoveResult{}, nil
155}
156
157func (cli *fakeClient) SecretRemove(_ context.Context, secretID string, _ client.SecretRemoveOptions) (client.SecretRemoveResult, error) {
158 if cli.secretRemoveFunc != nil {

Callers 1

removeNetworksFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected