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)
| 108 | // initializing the API client. These options have no effect if a custom |
| 109 | // client is set (through [WithAPIClient] or [WithInitializeClient]). |
| 110 | func 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 |
no outgoing calls
searching dependent graphs…