Documentation ¶
Index ¶
- func Copy(ctx context.Context, log logrus.FieldLogger, dockerBinary string, image string, ...) error
- func DownloadImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) error
- func DownloadImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) error
- func PushImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) error
- func PushImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) error
- func RetagImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) (string, error)
- func RetagImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, ...) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy(ctx context.Context, log logrus.FieldLogger, dockerBinary string, image string, dst string, src string) error
Copy copies the content from a directory out of the container onto the host system.
func DownloadImage ¶
func DownloadImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, image string) error
DownloadImage invokes the Docker CLI and pulls an image.
func DownloadImages ¶
func DownloadImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, images []string) error
DownloadImages pulls all given images using the Docker CLI Invokes DownloadImage for actual pulling.
func PushImage ¶
func PushImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, image string) error
PushImage invokes the Docker CLI and pushes the given image.
func PushImages ¶
func PushImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, images []string) error
PushImages pushes all given images using the Docker CLI Invokes PushImage for actual pushing.
func RetagImage ¶
func RetagImage(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, sourceImage, registry string) (string, error)
RetagImage invokes the Docker CLI and tags the given image so it belongs to the given registry.
func RetagImages ¶
func RetagImages(ctx context.Context, log logrus.FieldLogger, dockerBinary string, dryRun bool, images []string, registry string) ([]string, error)
RetagImages invokes the Docker CLI and tags the given images so they belongs to the given registry. Invokes RetagImage for actual tagging.
Types ¶
This section is empty.