summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-29 11:21:47 +0200
committerGitHub <noreply@github.com>2020-04-29 11:21:47 +0200
commit3e912f711b875b40709075e22be3f94e21e1639a (patch)
tree535357ded8c2482fabd8a9ccda5cdd70bb94867f /pkg/bindings/images/images.go
parent62a4befe040944c7c4883fed6a70f691aadb440c (diff)
parent8700c2fd03c29fb898f93e71618d91e2470236f6 (diff)
downloadpodman-3e912f711b875b40709075e22be3f94e21e1639a.tar.gz
podman-3e912f711b875b40709075e22be3f94e21e1639a.tar.bz2
podman-3e912f711b875b40709075e22be3f94e21e1639a.zip
Merge pull request #6022 from vrothberg/enable-inspect-tests
enable inspect tests
Diffstat (limited to 'pkg/bindings/images/images.go')
-rw-r--r--pkg/bindings/images/images.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bindings/images/images.go b/pkg/bindings/images/images.go
index 06f01c7a0..2305e0101 100644
--- a/pkg/bindings/images/images.go
+++ b/pkg/bindings/images/images.go
@@ -57,7 +57,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) (*entities.ImageData, error) {
+func GetImage(ctx context.Context, nameOrID string, size *bool) (*entities.ImageInspectReport, error) {
conn, err := bindings.GetClient(ctx)
if err != nil {
return nil, err
@@ -66,7 +66,7 @@ func GetImage(ctx context.Context, nameOrID string, size *bool) (*entities.Image
if size != nil {
params.Set("size", strconv.FormatBool(*size))
}
- inspectedData := entities.ImageData{}
+ inspectedData := entities.ImageInspectReport{}
response, err := conn.DoRequest(nil, http.MethodGet, "/images/%s/json", params, nameOrID)
if err != nil {
return &inspectedData, err