Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var UserPasswordKeyChain authn.Keychain = &Credentials{}
    Functions ¶
func NewCredentials ¶
Get and validate OCI credentials by providing a repository URL
Types ¶
type Credentials ¶
type Credentials struct {
	// contains filtered or unexported fields
}
    func (*Credentials) Authorization ¶
func (repo *Credentials) Authorization() (*authn.AuthConfig, error)
Authorization implements an authn.Authenticator
See https://pkg.go.dev/github.com/google/go-containerregistry/pkg/authn#Authenticator
Returns an authn.AuthConfig with a user / password pair to be used for authentication
func (*Credentials) Resolve ¶
func (repo *Credentials) Resolve(resource authn.Resource) (authn.Authenticator, error)
Resolve implements an authn.KeyChain
See https://pkg.go.dev/github.com/google/go-containerregistry/pkg/authn#Keychain
Returns a custom credentials authn.Authenticator if the given resource RegistryStr() matches the Repository, otherwise it returns annonymous access
 Click to show internal directories. 
   Click to hide internal directories.