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

Method CurrentVersion

cli/command/cli.go:88–94  ·  view source on GitHub ↗

CurrentVersion returns the API version currently negotiated, or the default version otherwise.

()

Source from the content-addressed store, hash-verified

86// CurrentVersion returns the API version currently negotiated, or the default
87// version otherwise.
88func (cli *DockerCli) CurrentVersion() string {
89 _ = cli.initialize()
90 if cli.client == nil {
91 return client.MaxAPIVersion
92 }
93 return cli.client.ClientVersion()
94}
95
96// Client returns the APIClient
97func (cli *DockerCli) Client() client.APIClient {

Callers 1

Calls 2

initializeMethod · 0.95
ClientVersionMethod · 0.45

Tested by 1