Documentation ¶
Index ¶
- func ErrCode(msg string, err error) error
- type ECR
- func (e *ECR) CreateRepository(ctx context.Context, input *ecr.CreateRepositoryInput) (*ecr.Repository, error)
- func (e *ECR) DeleteImageTag(ctx context.Context, repoName, tag string) (*ecr.BatchDeleteImageOutput, error)
- func (e *ECR) DeleteRepository(ctx context.Context, repoName string) (*ecr.Repository, error)
- func (e *ECR) GetImageScanFindings(ctx context.Context, repoName, tag string) (*ecr.ImageScanFindings, error)
- func (e *ECR) GetImageScanFindingsByImageDigest(ctx context.Context, repoName, imageDigest string) (*ecr.DescribeImageScanFindingsOutput, error)
- func (e *ECR) GetImages(ctx context.Context, repoName string, imageIds ...*ecr.ImageIdentifier) ([]*ecr.ImageDetail, error)
- func (e *ECR) GetRepositories(ctx context.Context, repoName string) (*ecr.Repository, error)
- func (e *ECR) GetRepositoryPolicy(ctx context.Context, repoName string) (string, error)
- func (e *ECR) GetRepositoryTags(ctx context.Context, repoArn string) ([]*ecr.Tag, error)
- func (e *ECR) ListImages(ctx context.Context, repoName string) ([]*ecr.ImageIdentifier, error)
- func (e *ECR) ListRepositories(ctx context.Context) ([]string, error)
- func (e *ECR) ScanImage(ctx context.Context, imageDetails *ecr.ImageDetail, repository string) error
- func (e *ECR) SetImageScanningConfiguration(ctx context.Context, repoName string, scanOnPush bool) error
- func (e *ECR) UpdateRepositoryPolicy(ctx context.Context, repoName, repoPolicy string) error
- func (e *ECR) UpdateRepositoryTags(ctx context.Context, repoArn string, tags []*ecr.Tag) error
- type ECROption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ECR ¶
type ECR struct { Service ecriface.ECRAPI DefaultKMSKeyId string // contains filtered or unexported fields }
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 ¶
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) GetImageScanFindingsByImageDigest ¶ added in v0.8.3
func (e *ECR) GetImageScanFindingsByImageDigest(ctx context.Context, repoName, imageDigest string) (*ecr.DescribeImageScanFindingsOutput, error)
GetImageScanFindingsByImageDigest gets the scan findings for an image digest
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 ¶
GetRepositories gets a repository by name
func (*ECR) GetRepositoryPolicy ¶ added in v0.4.0
func (*ECR) GetRepositoryTags ¶
GetRpositoryTags gets the tags for a repository by ARN
func (*ECR) ListImages ¶
ListImages lists the images in a repostitory
func (*ECR) ListRepositories ¶
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