summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-03 22:41:18 +0200
committerGitHub <noreply@github.com>2020-04-03 22:41:18 +0200
commit35f586783388cdff6b4f15e7aff4df1ee72d9b67 (patch)
tree3d44eed09f7dca13f9c152468b55ee2968e5f6b8 /pkg/domain/entities
parent64cade0f71a8189403d208cbc7dc8716008229be (diff)
parent837aad724ff1f7f4cc3b125b8b3419af29cd4982 (diff)
downloadpodman-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.go1
-rw-r--r--pkg/domain/entities/images.go7
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
+}