Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthEntry ¶
type AuthEntry struct {
Auth string `json:"auth,omitempty"`
}
AuthEntry holds base64-encoded credentials for a single registry.
type DockerConfig ¶
type DockerConfig struct {
Auths map[string]AuthEntry `json:"auths,omitempty"`
CredHelpers map[string]string `json:"credHelpers,omitempty"`
CredsStore string `json:"credsStore,omitempty"`
}
DockerConfig represents the structure of a Docker config.json file.
type OutputFile ¶
type OutputFile struct {
Name string `json:"name"`
Value json.RawMessage `json:"value"`
}
OutputFile is the envelope format written to output and export files.
type Params ¶
type Params struct {
ConfigPath string // Path to an existing Docker config.json. If empty or non-existent, an empty config is used.
Registry string
Username string
Password string
HelperName string
StoreName string
OutputFile string
ExportFile string
}
Params holds the resolved inputs for configuring Docker auth. All paths must be fully resolved — the library does not apply defaults (e.g. it will not locate ~/.docker/config.json when ConfigPath is empty).
Click to show internal directories.
Click to hide internal directories.