Documentation
¶
Overview ¶
Package docker provides commands that help configure a docker credential helper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdConfigureDocker ¶
NewCmdConfigureDocker returns a command that configures the CLI as a Docker credential helper.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper implements a docker-credential-* helper interface. It assists in logging into a registry.
func (*Helper) Add ¶
func (h *Helper) Add(creds *credentials.Credentials) error
func (*Helper) Get ¶
Get fetches the glab auth token for registryURL. It tries the Artifact Registry first; on any failure, it falls back to the container-registry path, using that credential and logging the fall-through if the fallback succeeds. If neither produces a credential, it prefers the artifact registry error whenever the domain was configured for it, since that names the actual failure, where the container-registry path can only say the domain is unassociated.