{"modulePath":"github.com/telecomposeio/docker-cli","version":"v0.0.0-20230330191823-de0d30ff24fa","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package docker\n\n## Constants\n\n```go\nconst (\n\t// DockerEndpoint is the name of the docker endpoint in a stored context\n\tDockerEndpoint = \"docker\"\n)\n```\n\n## Types\n\n```go\ntype Endpoint struct {\n\tEndpointMeta\n\tTLSData *context.TLSData\n\n\t// Deprecated: Use of encrypted TLS private keys has been deprecated, and\n\t// will be removed in a future release. Golang has deprecated support for\n\t// legacy PEM encryption (as specified in RFC 1423), as it is insecure by\n\t// design (see https://go-review.googlesource.com/c/go/+/264159).\n\tTLSPassword string\n}\n```\nEndpoint is a typed wrapper around a context-store generic endpoint describing a Docker Engine endpoint, with its tls data\n\n```go\nfunc WithTLSData(s store.Reader, contextName string, m EndpointMeta) (Endpoint, error)\n```\nWithTLSData loads TLS materials for the endpoint\n\n```go\nfunc (c *Endpoint) ClientOpts() ([]client.Opt, error)\n```\nClientOpts returns a slice of Client options to configure an API client with this endpoint\n\n```go\ntype EndpointMeta = context.EndpointMetaBase\n```\nEndpointMeta is a typed wrapper around a context-store generic endpoint describing a Docker Engine endpoint, without its tls config\n\n```go\nfunc EndpointFromContext(metadata store.Metadata) (EndpointMeta, error)\n```\nEndpointFromContext parses a context docker endpoint metadata into a typed EndpointMeta structure\n\n","path":"github.com/telecomposeio/docker-cli/cli/context/docker","name":"docker","synopsis":"","isRedistributable":true}
