Documentation
¶
Overview ¶
Package registryauth supplies container-registry credentials and mirror rewriting for every image pull Gopherstack performs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidSetting = errors.New("invalid docker registry setting")
ErrInvalidSetting is returned for malformed registry settings; it never echoes the offending value because it may carry a password.
Functions ¶
func EncodeCredential ¶
EncodeCredential returns the registryAuth header value for one explicit credential.
Types ¶
type ImageTagger ¶
ImageTagger is implemented by Docker clients able to alias an image.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver chooses credentials and mirrors for image pulls.
func Default ¶
func Default() *Resolver
Default returns the process-wide resolver, creating a credentials-from-docker-config only resolver when Configure was never called.
func (*Resolver) AuthFor ¶
AuthFor returns the registryAuth header value for host, or "" when none is known.
func (*Resolver) Pull ¶
Pull pulls ref with per-host credentials, trying a configured mirror first (retagging to ref on success) and falling back to the original registry.
func (*Resolver) RegisterEmulated ¶
RegisterEmulated marks host as an in-process registry (e.g. the ECR emulator) that accepts the given credentials without further configuration.
type Settings ¶
type Settings struct {
Auth []string `` //nolint:lll // config struct tags are intentionally verbose
/* 138-byte string literal not displayed */
Mirror []string `` //nolint:lll // config struct tags are intentionally verbose
/* 191-byte string literal not displayed */
}
Settings is embedded in the root CLI.