diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-03 22:41:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 22:41:18 +0200 |
commit | 35f586783388cdff6b4f15e7aff4df1ee72d9b67 (patch) | |
tree | 3d44eed09f7dca13f9c152468b55ee2968e5f6b8 /pkg/domain/entities | |
parent | 64cade0f71a8189403d208cbc7dc8716008229be (diff) | |
parent | 837aad724ff1f7f4cc3b125b8b3419af29cd4982 (diff) | |
download | podman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.tar.gz podman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.tar.bz2 podman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.zip |
Merge pull request #5672 from baude/v2save
podmanv2 save image
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/engine_image.go | 1 | ||||
-rw-r--r-- | pkg/domain/entities/images.go | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_image.go b/pkg/domain/entities/engine_image.go index 04b9d34e6..a28bfc548 100644 --- a/pkg/domain/entities/engine_image.go +++ b/pkg/domain/entities/engine_image.go @@ -17,4 +17,5 @@ type ImageEngine interface { Load(ctx context.Context, opts ImageLoadOptions) (*ImageLoadReport, error) Import(ctx context.Context, opts ImageImportOptions) (*ImageImportReport, error) Push(ctx context.Context, source string, destination string, opts ImagePushOptions) error + Save(ctx context.Context, nameOrId string, tags []string, options ImageSaveOptions) error } diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index d66de3c5e..bc8a34c13 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -234,3 +234,10 @@ type ImageImportOptions struct { type ImageImportReport struct { Id string } + +type ImageSaveOptions struct { + Compress bool + Format string + Output string + Quiet bool +} |