diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-03-31 17:02:10 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-04-01 08:07:43 -0700 |
commit | 46e3b2efb84580cc12b0bc5ad0863957b88ae202 (patch) | |
tree | dbe09731facf6a80406a62a6ca95b3f1514c2047 /pkg/domain/entities/images.go | |
parent | 82cbebcbea7f92be7e82bc11fdf1b30d7e194cdc (diff) | |
download | podman-46e3b2efb84580cc12b0bc5ad0863957b88ae202.tar.gz podman-46e3b2efb84580cc12b0bc5ad0863957b88ae202.tar.bz2 podman-46e3b2efb84580cc12b0bc5ad0863957b88ae202.zip |
V2 podman inspect
* Expose podman container inspect
* Expose podman image inspect
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/entities/images.go')
-rw-r--r-- | pkg/domain/entities/images.go | 22 |
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 +} |