Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseImage ¶
ParseImage returns the AWS account ID and region and `true` if the image repository is hosted in AWS's Elastic Container Registry, otherwise empty strings and `false`.
Types ¶
type Client ¶
Client is a AWS ECR client which can log into the registry and return authorization information.
func NewClient ¶
func NewClient() *Client
NewClient creates a new ECR client with default configurations.
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, autoLogin bool, image string) (authn.Authenticator, error)
Login attempts to get the authentication material for ECR. It extracts the account and region information from the image URI. The caller can ensure that the passed image is a valid ECR image using ParseImage().
Click to show internal directories.
Click to hide internal directories.