package
1.14.0-alpha.3
Repository: https://github.com/draveness/kubernetes.git
Documentation: pkg.go.dev
# Functions
DefaultDockercfgPaths returns default search paths of .dockercfg.
DefaultDockerConfigJSONPaths returns default search paths of .docker/config.json.
No description provided by the author
No description provided by the author
No description provided by the author
NewDockerKeyring creates a DockerKeyring to use for resolving credentials, which lazily draws from the set of registered credential providers.
ReadDockercfgFile attempts to read a legacy dockercfg file from the given paths.
No description provided by the author
No description provided by the author
ReadDockerConfigJSONFile attempts to read a docker config.json file from the given paths.
ReadSpecificDockerConfigJsonFile attempts to read docker configJSON from a given file path.
No description provided by the author
RegisterCredentialProvider is called by provider implementations on initialization to register themselves, like so: func init() { RegisterCredentialProvider("name", &myProvider{...}) }.
No description provided by the author
# Structs
AuthConfig contains authorization information for connecting to a Registry This type mirrors "github.com/docker/docker/api/types.AuthConfig".
BasicDockerKeyring is a trivial map-backed implementation of DockerKeyring.
CachingDockerConfigProvider implements DockerConfigProvider by composing with another DockerConfigProvider and caching the DockerConfig it provides for a pre-specified lifetime.
No description provided by the author
DockerConfigJson represents ~/.docker/config.json file info see https://github.com/docker/docker/pull/12009.
No description provided by the author
HttpError wraps a non-StatusOK error code as an error.
LazyAuthConfiguration wraps dockertypes.AuthConfig, potentially deferring its binding.
# Interfaces
DockerConfigProvider is the interface that registered extensions implement to materialize 'dockercfg' credentials.
DockerKeyring tracks a set of docker registry credentials, maintaining a reverse index across the registry endpoints.
# Type aliases
DockerConfig represents the config file used by the docker CLI.
UnionDockerKeyring delegates to a set of keyrings.