Documentation ¶
Overview ¶
Package auth provides different keychains used in imgpkg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 IAASKeychain ¶ added in v0.32.0
type IAASKeychain string
IAASKeychain defines the type IAAS Keychain names
var ( // GKEKeychain GKE keychain name GKEKeychain IAASKeychain = "gke" // AKSKeychain AKS keychain name AKSKeychain IAASKeychain = "aks" // ECRKeychain ECR keychain name ECRKeychain IAASKeychain = "ecr" // GithubKeychain Github keychain name GithubKeychain IAASKeychain = "github" )
type KeychainOpts ¶
type KeychainOpts struct { Username string Password string Token string Anon bool EnableIaasAuthProviders bool ActiveKeychains []IAASKeychain }
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
Directories ¶
Path | Synopsis |
---|---|
Package credentialprovider contains helper functions used in auth package
|
Package credentialprovider contains helper functions used in auth package |