Documentation ¶
Overview ¶
Package ecr helps generate clients to talk to the ECR API
Index ¶
Constants ¶
View Source
const ( MinimumJitterDuration = 30 * time.Minute MaximumJitterDuration = 1 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECRClient ¶
type ECRClient interface { GetAuthorizationToken(registryId string) (*ecrapi.AuthorizationData, error) IsTokenValid(*ecrapi.AuthorizationData) bool }
ECRClient wrapper interface for mocking
type ECRFactory ¶
func NewECRFactory ¶
func NewECRFactory(acceptInsecureCert bool) ECRFactory
NewECRFactory returns an ECRFactory capable of producing ECRSDK clients
type ECRSDK ¶
type ECRSDK interface {
GetAuthorizationToken(*ecrapi.GetAuthorizationTokenInput) (*ecrapi.GetAuthorizationTokenOutput, error)
}
ECRSDK is an interface that specifies the subset of the AWS Go SDK's ECR client that the Agent uses. This interface is meant to allow injecting a mock for testing.
Click to show internal directories.
Click to hide internal directories.