Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCredentialsFromBytes ¶
func ReadCredentialsFromBytes(contents []byte) (cfg map[string]ServerCredentials, err error)
Types ¶
type Credentials ¶
type Credentials struct {
Auths map[string]ServerCredentials `json:"auths"`
}
Credentials represents Docker credentials which are typically stored in `~/.docker/config.json`.
type ServerCredentials ¶
type ServerCredentials struct { Auth string `json:"auth"` Username string `json:"username"` Password string `json:"password"` }
ServerCredentials represent credentials used to login to a Docker server.
Click to show internal directories.
Click to hide internal directories.