summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-01 19:08:08 +0200
committerGitHub <noreply@github.com>2020-04-01 19:08:08 +0200
commitd534e524272121a6489c1a2a2c11c6b389027ecd (patch)
treedbe09731facf6a80406a62a6ca95b3f1514c2047 /pkg/domain/entities/images.go
parent82cbebcbea7f92be7e82bc11fdf1b30d7e194cdc (diff)
parent46e3b2efb84580cc12b0bc5ad0863957b88ae202 (diff)
downloadpodman-d534e524272121a6489c1a2a2c11c6b389027ecd.tar.gz
podman-d534e524272121a6489c1a2a2c11c6b389027ecd.tar.bz2
podman-d534e524272121a6489c1a2a2c11c6b389027ecd.zip
Merge pull request #5645 from jwhonce/wip/inspect
V2 podman inspect
Diffstat (limited to 'pkg/domain/entities/images.go')
-rw-r--r--pkg/domain/entities/images.go22
1 files changed, 10 insertions, 12 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go
index 41579398b..20682b05b 100644
--- a/pkg/domain/entities/images.go
+++ b/pkg/domain/entities/images.go
@@ -5,6 +5,7 @@ import (
"github.com/containers/image/v5/manifest"
"github.com/containers/image/v5/types"
+ "github.com/containers/libpod/pkg/inspect"
docker "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/opencontainers/go-digest"
@@ -12,7 +13,6 @@ import (
)
type Image struct {
- IdOrNamed
ID string `json:"Id"`
RepoTags []string `json:",omitempty"`
RepoDigests []string `json:",omitempty"`
@@ -111,13 +111,6 @@ type ImageHistoryReport struct {
Layers []ImageHistoryLayer
}
-type ImageInspectOptions struct {
- TypeObject string `json:",omitempty"`
- Format string `json:",omitempty"`
- Size bool `json:",omitempty"`
- Latest bool `json:",omitempty"`
-}
-
// ImagePullOptions are the arguments for pulling images.
type ImagePullOptions struct {
// AllTags can be specified to pull all tags of the spiecifed image. Note
@@ -157,10 +150,6 @@ type ImageListOptions struct {
Filters url.Values `json:"filters" schema:"filters"`
}
-// type ImageListReport struct {
-// Images []ImageSummary
-// }
-
type ImagePruneOptions struct {
All bool `json:"all" schema:"all"`
Filter []string `json:"filter" schema:"filter"`
@@ -174,3 +163,12 @@ type ImagePruneReport struct {
type ImageTagOptions struct{}
type ImageUntagOptions struct{}
+
+type ImageData struct {
+ *inspect.ImageData
+}
+
+type ImageInspectReport struct {
+ Images []*ImageData
+ Errors map[string]error
+}