ecr

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type ECR

type ECR struct {
	Service         ecriface.ECRAPI
	DefaultKMSKeyId string
	// contains filtered or unexported fields
}

func New

func New(opts ...ECROption) ECR

func (*ECR) CreateRepository

func (e *ECR) CreateRepository(ctx context.Context, input *ecr.CreateRepositoryInput) (*ecr.Repository, error)

CreateRepository creates an ECR repository

func (*ECR) DeleteImageTag added in v0.4.1

func (e *ECR) DeleteImageTag(ctx context.Context, repoName, tag string) (*ecr.BatchDeleteImageOutput, error)

DeleteImageTag deletes the image tag, if no other tags reference the image, the image is deleted

func (*ECR) DeleteRepository

func (e *ECR) DeleteRepository(ctx context.Context, repoName string) (*ecr.Repository, error)

DeleteRepository deletes a repository by name

func (*ECR) GetImageScanFindings added in v0.4.1

func (e *ECR) GetImageScanFindings(ctx context.Context, repoName, tag string) (*ecr.ImageScanFindings, error)

GetImageScanFindings gets the scan findings for an image tag

func (*ECR) GetImages

func (e *ECR) GetImages(ctx context.Context, repoName string, imageIds ...*ecr.ImageIdentifier) ([]*ecr.ImageDetail, error)

GetImages gets details about images in a repository

func (*ECR) GetRepositories

func (e *ECR) GetRepositories(ctx context.Context, repoName string) (*ecr.Repository, error)

GetRepositories gets a repository by name

func (*ECR) GetRepositoryPolicy added in v0.4.0

func (e *ECR) GetRepositoryPolicy(ctx context.Context, repoName string) (string, error)

func (*ECR) GetRepositoryTags

func (e *ECR) GetRepositoryTags(ctx context.Context, repoArn string) ([]*ecr.Tag, error)

GetRpositoryTags gets the tags for a repository by ARN

func (*ECR) ListImages

func (e *ECR) ListImages(ctx context.Context, repoName string) ([]*ecr.ImageIdentifier, error)

ListImages lists the images in a repostitory

func (*ECR) ListRepositories

func (e *ECR) ListRepositories(ctx context.Context) ([]string, error)

ListRepositories lists all of the respositories in an account (up to 1000)

func (*ECR) SetImageScanningConfiguration

func (e *ECR) SetImageScanningConfiguration(ctx context.Context, repoName string, scanOnPush bool) error

SetImageScanningConfiguration updates the image scanning configuration for a repository by name

func (*ECR) UpdateRepositoryPolicy added in v0.4.0

func (e *ECR) UpdateRepositoryPolicy(ctx context.Context, repoName, repoPolicy string) error

func (*ECR) UpdateRepositoryTags

func (e *ECR) UpdateRepositoryTags(ctx context.Context, repoArn string, tags []*ecr.Tag) error

UpdateRepositoryTags updates the tags for the given repository

type ECROption

type ECROption func(*ECR)

func WithCredentials

func WithCredentials(key, secret, token, region string) ECROption

func WithDefaultKMSKeyId

func WithDefaultKMSKeyId(keyId string) ECROption

func WithSession

func WithSession(sess *session.Session) ECROption

Jump to

Keyboard shortcuts

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