ecr

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL