ecr

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidTokenError = errors.New("unexpected token format")

InvalidTokenError is returned when token is not in base64-encoded `username:password` format.

View Source
var UnexpectedResponseError = errors.New("unexpected number of authorization data returned")

UnexpectedResponseError is returned when ECR client returns zero or more than one types.AuthorizationData in its response.

Functions

This section is empty.

Types

type AuthorizationToken

type AuthorizationToken struct {
	types.AuthorizationData
	Username *string
	Password *string
}

AuthorizationToken extends types.AuthorizationData by adding Username and Password explicitly.

func GetToken

func GetToken(context context.Context, optsFns ...func(*config.LoadOptions) error) (*AuthorizationToken, error)

GetToken obtains an AuthorizationToken from AWS ECR client using the passed context and options

func NewToken

func NewToken(authData *types.AuthorizationData) (*AuthorizationToken, error)

NewToken builds an AuthorizationToken from types.AuthorizationData.

Jump to

Keyboard shortcuts

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