DockerCli is an instance the docker command line client. Instances of the client should be created using the [NewDockerCli] constructor to make sure they are properly initialized with defaults set.
| 58 | // constructor to make sure they are properly initialized with defaults |
| 59 | // set. |
| 60 | type DockerCli struct { |
| 61 | configFile *configfile.ConfigFile |
| 62 | options *cliflags.ClientOptions |
| 63 | clientOpts []client.Opt |
| 64 | in *streams.In |
| 65 | out *streams.Out |
| 66 | err *streams.Out |
| 67 | client client.APIClient |
| 68 | serverInfo ServerInfo |
| 69 | contextStore store.Store |
| 70 | currentContext string |
| 71 | init sync.Once |
| 72 | initErr error |
| 73 | dockerEndpoint docker.Endpoint |
| 74 | contextStoreConfig *store.Config |
| 75 | initTimeout time.Duration |
| 76 | res telemetryResource |
| 77 | |
| 78 | // baseCtx is the base context used for internal operations. In the future |
| 79 | // this may be replaced by explicitly passing a context to functions that |
| 80 | // need it. |
| 81 | baseCtx context.Context |
| 82 | |
| 83 | enableGlobalMeter, enableGlobalTracer bool |
| 84 | } |
| 85 | |
| 86 | // CurrentVersion returns the API version currently negotiated, or the default |
| 87 | // version otherwise. |
nothing calls this directly
no outgoing calls
no test coverage detected