Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageNotFound = errors.New("image not found on Docker host")
Functions ¶
func Pull ¶
func Pull(dockerClient Client, image string, repositoryURI string, stripTag bool, auth ecr.RegistryAuth) (err error)
Pull will pull the image from ECR to the Docker host using the 'repositoryURI' and the tag from the 'image'. The 'stripTag' parameter will optionally tag the pulled image as the simpler 'image', and remove the full ECR image tag from the Docker host.
func TagAndPush ¶
func TagAndPush(dockerClient Client, image string, repositoryURI string, auth ecr.RegistryAuth) (err error)
TagAndPush will tag the image using the 'repositoryURI' and tag in the 'image' on the Docker host, then push the image to ECR. The tagged image is always cleaned up, even if pushing the image fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.