Documentation ¶
Overview ¶
Package auth contains authentication methods to talk to the registry
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomRegistryKeychain ¶
type CustomRegistryKeychain struct {
Opts KeychainOpts
}
CustomRegistryKeychain implements an authn.Keychain interface by using credentials provided by imgpkg's auth options
func (CustomRegistryKeychain) Resolve ¶
func (k CustomRegistryKeychain) Resolve(res regauthn.Resource) (regauthn.Authenticator, error)
Resolve looks up the most appropriate credential for the specified target.
type EnvKeychain ¶
type EnvKeychain struct {
// contains filtered or unexported fields
}
EnvKeychain implements an authn.Keychain interface by using credentials provided by imgpkg's auth environment vars
func NewEnvKeychain ¶ added in v0.23.0
func NewEnvKeychain(environFunc func() []string) *EnvKeychain
NewEnvKeychain builder for Environment Keychain
func (*EnvKeychain) Resolve ¶
func (k *EnvKeychain) Resolve(target regauthn.Resource) (regauthn.Authenticator, error)
Resolve looks up the most appropriate credential for the specified target.
type KeychainOpts ¶
KeychainOpts Contains credentials (passed down via flags) used by custom keychain to auth with a registry
type SingleAuthKeychain ¶ added in v0.23.0
type SingleAuthKeychain struct {
// contains filtered or unexported fields
}
SingleAuthKeychain This Keychain will always provide the same authentication for all images
func NewSingleAuthKeychain ¶ added in v0.23.0
func NewSingleAuthKeychain(auth regauthn.Authenticator) SingleAuthKeychain
NewSingleAuthKeychain Builds a SingleAuthKeychain struct
func (SingleAuthKeychain) Resolve ¶ added in v0.23.0
func (s SingleAuthKeychain) Resolve(_ regauthn.Resource) (regauthn.Authenticator, error)
Resolve returns the same authentication for all images