Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBasicAuthForHost ¶ added in v0.4.2
func ExtractBasicAuthForHost(authConfigs AuthConfigs, host string) (string, string, error)
ExtractBasicAuthForHost will extract the basic auth info for a registry host from an AuthConfigs instance
Types ¶
type AuthConfigs ¶
type AuthConfigs map[string]types.AuthConfig
AuthConfigs is a map of registry urls to authentication credentials.
func ExtractAuthConfigs ¶ added in v0.4.2
func ExtractAuthConfigs(input []byte) (authConfigs AuthConfigs, err error)
ExtractAuthConfigs will return the Docker AuthConfigs from a JSON-representation of a Docker config file.
type DockerConfigJSON ¶
type DockerConfigJSON struct {
Auths AuthConfigs `json:"auths"`
}
DockerConfigJSON models the structure of .dockerconfigfile data.
Click to show internal directories.
Click to hide internal directories.