summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/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/infra/tunnel/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/infra/tunnel/images.go')
-rw-r--r--pkg/domain/infra/tunnel/images.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index d7f281243..6a8b9be37 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -145,3 +145,15 @@ func (ir *ImageEngine) Untag(ctx context.Context, nameOrId string, tags []string
}
return nil
}
+
+func (ir *ImageEngine) Inspect(_ context.Context, names []string, opts entities.InspectOptions) (*entities.ImageInspectReport, error) {
+ report := entities.ImageInspectReport{}
+ for _, id := range names {
+ r, err := images.GetImage(ir.ClientCxt, id, &opts.Size)
+ if err != nil {
+ report.Errors[id] = err
+ }
+ report.Images = append(report.Images, r)
+ }
+ return &report, nil
+}