Versions in this module Expand all Collapse all v0 v0.4.0 Nov 13, 2026 Changes in this version + var ErrUnauthorized = errors.New("registry authentication failed") + type KeychainProvider struct + Keychain authn.Keychain + func (p *KeychainProvider) Authenticator(ctx context.Context, ref name.Reference) (authn.Authenticator, error) + type Multi struct + ByHost map[string]Provider + Default Provider + func (m *Multi) Authenticator(ctx context.Context, ref name.Reference) (authn.Authenticator, error) + type Options struct + Insecure bool + type Provider interface + Authenticator func(ctx context.Context, ref name.Reference) (authn.Authenticator, error) + type Result struct + Bytes int64 + Digest string + Layers int + Reference string + func Push(ctx context.Context, img v1.Image, target string, provider Provider, ...) (*Result, error) + func PushFromCache(ctx context.Context, p *paths.Paths, digest, target string, provider Provider, ...) (*Result, error) + type StaticProvider struct + Config authn.AuthConfig + func (p *StaticProvider) Authenticator(_ context.Context, _ name.Reference) (authn.Authenticator, error)