ecr

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package ecr implements ECR utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(
	lg *zap.Logger,
	svc ecriface.ECRAPI,
	partition string,
	repoAccountID string,
	repoRegion string,
	repoName string,
	imageTag string) (img string, ok bool, err error)

Check checks if the specified repository exists, and returns the repository URI + ":" + image tag. It returns "true" for "ok" if the repository exists.

func Create added in v1.4.8

func Create(
	lg *zap.Logger,
	svc ecriface.ECRAPI,
	repoAccountID string,
	repoRegion string,
	repoName string,
	imgScanOnPush bool,
	imgTagMutability string,
	policyTxt string,
	setPolicyForce bool) (repoURI string, err error)

Create creates an ECR repo if it does not exist. If the set policy fails, ECR repo creation is reverted (delete).

func Delete added in v1.4.8

func Delete(
	lg *zap.Logger,
	svc ecriface.ECRAPI,
	repoAccountID string,
	repoRegion string,
	repoName string,
	force bool) (err error)

Delete deletes an ECR repo if it exists.

func SetPolicy added in v1.4.8

func SetPolicy(
	lg *zap.Logger,
	svc ecriface.ECRAPI,
	repoAccountID string,
	repoRegion string,
	repoName string,
	policyTxt string,
	setPolicyForce bool) (repoURI string, err error)

SetPolicy updates the policy for an ECR repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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