Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicTokenConfig ¶
type BasicTokenProvider ¶
type BasicTokenProvider struct {
// contains filtered or unexported fields
}
func NewBasicTokenProvider ¶
func NewBasicTokenProvider(cfg BasicTokenConfig) *BasicTokenProvider
func (*BasicTokenProvider) Match ¶
func (p *BasicTokenProvider) Match(host string) bool
type DockerConfigJSONProvider ¶
type DockerConfigJSONProvider struct {
// contains filtered or unexported fields
}
DockerConfigJSONProvider resolves credentials from a .dockerconfigjson blob
func NewDockerConfigJSONProvider ¶
func NewDockerConfigJSONProvider(registryPattern, raw string) *DockerConfigJSONProvider
func (*DockerConfigJSONProvider) Match ¶
func (p *DockerConfigJSONProvider) Match(host string) bool
type ECRProvider ¶
type ECRProvider struct {
// contains filtered or unexported fields
}
func NewECRProvider ¶
func NewECRProvider(cfg ECRConfig) *ECRProvider
func (*ECRProvider) Match ¶
func (p *ECRProvider) Match(host string) bool
type Provider ¶
type Provider interface {
Match(host string) bool
Resolve(ctx context.Context, host string, imageRef string) (string, error)
}
Provider supplies Docker RegistryAuth for a given image host
func BuildProviders ¶
BuildProviders constructs providers from normalized registries configuration. Each entry is expected to contain keys: name, registry, auth{type, username, password, token, region, dockerconfigjson}
Entries with no auth block, missing type, or an unknown type are skipped with a warn log so misconfigured registries don't silently disappear into anonymous-pull territory (see RUNE-? — the GHCR symptom that surfaced this).
Click to show internal directories.
Click to hide internal directories.