provider

package
v0.8.0-dev.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOpt

type AuthOpt func(config *AuthProviderConfig)

func WithLogger

func WithLogger(logger *zap.Logger) AuthOpt

func WithSugaredLogger

func WithSugaredLogger(logger *zap.SugaredLogger) AuthOpt

type AuthProvider

type AuthProvider interface {
	authn.Keychain
	AuthConfig(ref reference.Named) registry.AuthConfig
	AuthConfigs() map[string]registry.AuthConfig
}

type AuthProviderConfig

type AuthProviderConfig struct {
	Logger *zap.SugaredLogger
}

type DefaultAuthProvider

type DefaultAuthProvider struct {
	// contains filtered or unexported fields
}

func NewDefaultAuthProvider

func NewDefaultAuthProvider(opts ...AuthOpt) (*DefaultAuthProvider, error)

func (*DefaultAuthProvider) AuthConfig

func (*DefaultAuthProvider) AuthConfigs

func (d *DefaultAuthProvider) AuthConfigs() map[string]registry.AuthConfig

func (*DefaultAuthProvider) Resolve

func (d *DefaultAuthProvider) Resolve(resource authn.Resource) (authn.Authenticator, error)

type ImageProvider

type ImageProvider interface {
	// GetDnsUtilImage returns an OCI image having dig preinstalled (for example: "registry.k8s.io/e2e-test-images/agnhost:2.39")
	GetDnsUtilImage() string
}

func DefaultImageProvider

func DefaultImageProvider() ImageProvider

type OverridingAuthProvider

type OverridingAuthProvider struct {
	// contains filtered or unexported fields
}

func NewOverridingAuthProvider

func NewOverridingAuthProvider(
	source AuthProvider, overrides map[string]registry.AuthConfig, opts ...AuthOpt,
) *OverridingAuthProvider

func (*OverridingAuthProvider) AuthConfig

func (*OverridingAuthProvider) AuthConfigs

func (o *OverridingAuthProvider) AuthConfigs() map[string]registry.AuthConfig

func (*OverridingAuthProvider) Resolve

func (*OverridingAuthProvider) WithOverride

type SimpleAuthenticator

type SimpleAuthenticator struct {
	AuthConfig registry.AuthConfig
}

func (*SimpleAuthenticator) Authorization

func (s *SimpleAuthenticator) Authorization() (*authn.AuthConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL