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

Method DockerEndpoint

cli/command/cli.go:460–467  ·  view source on GitHub ↗

DockerEndpoint returns the current docker endpoint

()

Source from the content-addressed store, hash-verified

458
459// DockerEndpoint returns the current docker endpoint
460func (cli *DockerCli) DockerEndpoint() docker.Endpoint {
461 if err := cli.initialize(); err != nil {
462 // Note that we're not terminating here, as this function may be used
463 // in cases where we're able to continue.
464 _, _ = fmt.Fprintln(cli.Err(), cli.initErr)
465 }
466 return cli.dockerEndpoint
467}
468
469func (cli *DockerCli) getDockerEndPoint() (ep docker.Endpoint, err error) {
470 cn := cli.CurrentContext()

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.95
ErrMethod · 0.95

Tested by

no test coverage detected