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.
Click to show internal directories.
Click to hide internal directories.