Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultAuthProvider ¶
type DefaultAuthProvider struct {
// contains filtered or unexported fields
}
func NewDefaultProvider ¶
func NewDefaultProvider(opts ...Opt) (*DefaultAuthProvider, error)
func (*DefaultAuthProvider) AuthConfig ¶
func (d *DefaultAuthProvider) AuthConfig(ref reference.Named) registry.AuthConfig
func (*DefaultAuthProvider) AuthConfigs ¶ added in v0.2.0
func (d *DefaultAuthProvider) AuthConfigs() map[string]registry.AuthConfig
type Opt ¶
type Opt func(config *ProviderConfig)
func WithLogger ¶
func WithSugaredLogger ¶
func WithSugaredLogger(logger *zap.SugaredLogger) Opt
type OverridingAuthProvider ¶
type OverridingAuthProvider struct {
// contains filtered or unexported fields
}
func NewOverridingProvider ¶
func NewOverridingProvider( source Provider, overrides map[string]registry.AuthConfig, opts ...Opt, ) *OverridingAuthProvider
func (*OverridingAuthProvider) AuthConfig ¶
func (o *OverridingAuthProvider) AuthConfig(ref reference.Named) registry.AuthConfig
func (*OverridingAuthProvider) AuthConfigs ¶ added in v0.2.0
func (o *OverridingAuthProvider) AuthConfigs() map[string]registry.AuthConfig
func (*OverridingAuthProvider) WithOverride ¶
func (o *OverridingAuthProvider) WithOverride(domain string, ac registry.AuthConfig) *OverridingAuthProvider
type Provider ¶
type Provider interface { AuthConfig(ref reference.Named) registry.AuthConfig AuthConfigs() map[string]registry.AuthConfig }
type ProviderConfig ¶
type ProviderConfig struct {
Logger *zap.SugaredLogger
}
Click to show internal directories.
Click to hide internal directories.