Documentation ¶
Index ¶
Constants ¶
View Source
const (
AWSECRUserName = "AWS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSECRAuthProvider ¶
type AWSECRAuthProvider struct {
// contains filtered or unexported fields
}
AWSECRAuthProvider return auth method from credential
func NewAWSECRAuthProvider ¶
func NewAWSECRAuthProvider(provider AWSECRTokenProvider) *AWSECRAuthProvider
NewAWSECRAuthProvider return new instance of AWSECRAuthProvider
func (*AWSECRAuthProvider) AuthMethod ¶
func (p *AWSECRAuthProvider) AuthMethod(authorizationToken string) (repository.AuthMethodReader, error)
AuthMethod returns a BasicAuthMethod having the username and password from authorization token
func (*AWSECRAuthProvider) Get ¶
func (p *AWSECRAuthProvider) Get(credential *credentials.Credential) (repository.AuthMethodReader, error)
Get returns the most appropiate AuthMethodReader for the credential received
type AWSECRTokenProvider ¶
type AWSECRTokenProvider interface {
Get(ctx context.Context, cfgFunc func(context.Context, ...func(*config.LoadOptions) error) (aws.Config, error), badge *credentials.Credential) (*ecr.GetAuthorizationTokenOutput, error)
}
AWSECRTokenProvider is the interface for the ECR client that generates the authorization token
Click to show internal directories.
Click to hide internal directories.