summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-20 16:37:38 -0400
committerGitHub <noreply@github.com>2020-04-20 16:37:38 -0400
commit1e9b3e7500a14ae066f5790fad6c3dfa9f94b688 (patch)
tree915e35f9821c61486ed4f6a22959d2e6abbad9d3 /pkg/domain/entities
parent37365b166d30d7da108d4ce79a76bbae787e4219 (diff)
parent9cd6bba5d57e7e23a92ab27e6c37f8623662d9b3 (diff)
downloadpodman-1e9b3e7500a14ae066f5790fad6c3dfa9f94b688.tar.gz
podman-1e9b3e7500a14ae066f5790fad6c3dfa9f94b688.tar.bz2
podman-1e9b3e7500a14ae066f5790fad6c3dfa9f94b688.zip
Merge pull request #5899 from jwhonce/wip/tree
V2 podman image tree
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/engine_image.go1
-rw-r--r--pkg/domain/entities/images.go10
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_image.go b/pkg/domain/entities/engine_image.go
index 052e7bee5..b6283b6ad 100644
--- a/pkg/domain/entities/engine_image.go
+++ b/pkg/domain/entities/engine_image.go
@@ -23,5 +23,6 @@ type ImageEngine interface {
Save(ctx context.Context, nameOrId string, tags []string, options ImageSaveOptions) error
Search(ctx context.Context, term string, opts ImageSearchOptions) ([]ImageSearchReport, error)
Tag(ctx context.Context, nameOrId string, tags []string, options ImageTagOptions) error
+ Tree(ctx context.Context, nameOrId string, options ImageTreeOptions) (*ImageTreeReport, error)
Untag(ctx context.Context, nameOrId string, tags []string, options ImageUntagOptions) error
}
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go
index 3a6d159e4..56c4c0ac5 100644
--- a/pkg/domain/entities/images.go
+++ b/pkg/domain/entities/images.go
@@ -273,3 +273,13 @@ type ImageSaveOptions struct {
Output string
Quiet bool
}
+
+// ImageTreeOptions provides options for ImageEngine.Tree()
+type ImageTreeOptions struct {
+ WhatRequires bool // Show all child images and layers of the specified image
+}
+
+// ImageTreeReport provides results from ImageEngine.Tree()
+type ImageTreeReport struct {
+ Tree string // TODO: Refactor move presentation work out of server
+}