Documentation ¶
Overview ¶
Package ecr implements ECR utilities.
Index ¶
- func Check(lg *zap.Logger, svc ecriface.ECRAPI, partition string, repoAccountID string, ...) (img string, ok bool, err error)
- func Create(lg *zap.Logger, svc ecriface.ECRAPI, repoAccountID string, repoRegion string, ...) (repoURI string, err error)
- func Delete(lg *zap.Logger, svc ecriface.ECRAPI, repoAccountID string, repoRegion string, ...) (err error)
- func SetPolicy(lg *zap.Logger, svc ecriface.ECRAPI, repoAccountID string, repoRegion string, ...) (repoURI string, err error)
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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.