ecr

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 10 Imported by: 31 modules, 92 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v1.13.0

type ECRClient interface {
	GetAuthorizationToken(registryId string) (*ecrapi.AuthorizationData, error)
}

ECRClient wrapper interface for mocking

func NewECRClient added in v1.13.0

func NewECRClient(sdkClient ECRSDK) ECRClient

NewECRClient creates an ECR client used to get docker auth from ECR

type ECRFactory

type ECRFactory interface {
	GetClient(*api.ECRAuthData) (ECRClient, error)
}

ECRFactory defines the interface to produce an ECR SDK client

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.

Directories

Path Synopsis
ecr

Jump to

Keyboard shortcuts

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