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

Function WithAPIClientOptions

cli/command/cli_options.go:110–115  ·  view source on GitHub ↗

WithAPIClientOptions configures additional [client.Opt] to use when initializing the API client. These options have no effect if a custom client is set (through [WithAPIClient] or [WithInitializeClient]).

(c ...client.Opt)

Source from the content-addressed store, hash-verified

108// initializing the API client. These options have no effect if a custom
109// client is set (through [WithAPIClient] or [WithInitializeClient]).
110func WithAPIClientOptions(c ...client.Opt) CLIOption {
111 return func(cli *DockerCli) error {
112 cli.clientOpts = append(cli.clientOpts, c...)
113 return nil
114 }
115}
116
117// envOverrideHTTPHeaders is the name of the environment-variable that can be
118// used to set custom HTTP headers to be sent by the client. This environment

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…