diff options
author | Brent Baude <bbaude@redhat.com> | 2020-03-30 12:59:05 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-03 13:07:35 -0500 |
commit | 837aad724ff1f7f4cc3b125b8b3419af29cd4982 (patch) | |
tree | 25ad8d10028a7d742e9fd61d1c96d87fbc342090 /pkg/domain/entities | |
parent | a89d62ac3a445a5d76bd72d4b8e1bb9262ba74c6 (diff) | |
download | podman-837aad724ff1f7f4cc3b125b8b3419af29cd4982.tar.gz podman-837aad724ff1f7f4cc3b125b8b3419af29cd4982.tar.bz2 podman-837aad724ff1f7f4cc3b125b8b3419af29cd4982.zip |
podmanv2 save image
add ability to save an image for podman v2
Signed-off-by: Brent Baude <bbaude@redhat.com>
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 +} |