Documentation ¶
Index ¶
- type Auth
- type Client
- type ClientFactory
- type DefaultClientFactory
- func (defaultClientFactory DefaultClientFactory) NewClient(awsSession *session.Session, awsConfig *aws.Config) Client
- func (defaultClientFactory DefaultClientFactory) NewClientFromRegion(region string) Client
- func (defaultClientFactory DefaultClientFactory) NewClientWithDefaults() Client
- func (defaultClientFactory DefaultClientFactory) NewClientWithFipsEndpoint(region string) (Client, error)
- func (defaultClientFactory DefaultClientFactory) NewClientWithOptions(opts Options) Client
- type ECRAPI
- type Options
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetCredentials(serverURL string) (*Auth, error) GetCredentialsByRegistryID(registryID string) (*Auth, error) ListCredentials() ([]*Auth, error) }
Client used for calling ECR service
type ClientFactory ¶
type ClientFactory interface { NewClient(awsSession *session.Session, awsConfig *aws.Config) Client NewClientWithOptions(opts Options) Client NewClientFromRegion(region string) Client NewClientWithFipsEndpoint(region string) (Client, error) NewClientWithDefaults() Client }
ClientFactory is a factory for creating clients to interact with ECR
type DefaultClientFactory ¶
type DefaultClientFactory struct{}
DefaultClientFactory is a default implementation of the ClientFactory
func (DefaultClientFactory) NewClient ¶
func (defaultClientFactory DefaultClientFactory) NewClient(awsSession *session.Session, awsConfig *aws.Config) Client
NewClient Create new client with AWS Config
func (DefaultClientFactory) NewClientFromRegion ¶
func (defaultClientFactory DefaultClientFactory) NewClientFromRegion(region string) Client
NewClientFromRegion uses the region to create the client
func (DefaultClientFactory) NewClientWithDefaults ¶
func (defaultClientFactory DefaultClientFactory) NewClientWithDefaults() Client
NewClientWithDefaults creates the client and defaults region
func (DefaultClientFactory) NewClientWithFipsEndpoint ¶ added in v0.2.0
func (defaultClientFactory DefaultClientFactory) NewClientWithFipsEndpoint(region string) (Client, error)
NewClientWithFipsEndpoint overrides the default ECR service endpoint in a given region to use the FIPS endpoint
func (DefaultClientFactory) NewClientWithOptions ¶
func (defaultClientFactory DefaultClientFactory) NewClientWithOptions(opts Options) Client
NewClientWithOptions Create new client with Options
type ECRAPI ¶ added in v0.3.1
type ECRAPI interface {
GetAuthorizationToken(*ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error)
}
Click to show internal directories.
Click to hide internal directories.