summaryrefslogtreecommitdiff
path: root/pkg/bindings
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/bindings
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/bindings')
-rw-r--r--pkg/bindings/images/images.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/bindings/images/images.go b/pkg/bindings/images/images.go
index 9ef85b955..ddc67bebc 100644
--- a/pkg/bindings/images/images.go
+++ b/pkg/bindings/images/images.go
@@ -12,7 +12,6 @@ import (
"github.com/containers/libpod/pkg/api/handlers"
"github.com/containers/libpod/pkg/bindings"
"github.com/containers/libpod/pkg/domain/entities"
- "github.com/containers/libpod/pkg/inspect"
)
// Exists a lightweight way to determine if an image exists in local storage. It returns a
@@ -57,7 +56,7 @@ func List(ctx context.Context, all *bool, filters map[string][]string) ([]*entit
// Get performs an image inspect. To have the on-disk size of the image calculated, you can
// use the optional size parameter.
-func GetImage(ctx context.Context, nameOrID string, size *bool) (*inspect.ImageData, error) {
+func GetImage(ctx context.Context, nameOrID string, size *bool) (*entities.ImageData, error) {
conn, err := bindings.GetClient(ctx)
if err != nil {
return nil, err
@@ -66,7 +65,7 @@ func GetImage(ctx context.Context, nameOrID string, size *bool) (*inspect.ImageD
if size != nil {
params.Set("size", strconv.FormatBool(*size))
}
- inspectedData := inspect.ImageData{}
+ inspectedData := entities.ImageData{}
response, err := conn.DoRequest(nil, http.MethodGet, "/images/%s/json", params, nameOrID)
if err != nil {
return &inspectedData, err