Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDockerJSON = "~/.docker/config.json"
DefaultDockerJSON is the defalt path for Docker JSON config file
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
B64Auth string `json:"auth"`
}
Auth contains Docker registry username and password in base64-encoded form
type Config ¶
type Config struct { Auths map[string]Auth `json:"auths"` CredsStore string `json:"credsStore,omitempty"` CredHelpers map[string]string `json:"credHelpers,omitempty"` // contains filtered or unexported fields }
Config encapsulates configuration loaded from Docker 'config.json' file
func (*Config) GetCredentials ¶
GetCredentials gets per-registry credentials from loaded Docker config
func (*Config) GetRegistryAuth ¶
GetRegistryAuth gets per-registry base64 authentication string
Click to show internal directories.
Click to hide internal directories.