aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings/manifests/manifests.go
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-29 11:01:33 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-29 18:14:41 +0900
commit32f54a81ed797597827123b671b6e73194354327 (patch)
tree2aefb9f7a39a2b385389b78e56acfaaa2e8e2edd /pkg/bindings/manifests/manifests.go
parentb7eee0b2ce1eb19804ebed6184d0ad2a4bd91fb9 (diff)
downloadpodman-32f54a81ed797597827123b671b6e73194354327.tar.gz
podman-32f54a81ed797597827123b671b6e73194354327.tar.bz2
podman-32f54a81ed797597827123b671b6e73194354327.zip
remote: fix manifest add --annotation
* `manifest add --annotation option` adds annotations field on remote environment. * `manifest inspect` prints annotations field on remote environment. Fixes: #15952 Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'pkg/bindings/manifests/manifests.go')
-rw-r--r--pkg/bindings/manifests/manifests.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/bindings/manifests/manifests.go b/pkg/bindings/manifests/manifests.go
index d987e51d8..0da8df709 100644
--- a/pkg/bindings/manifests/manifests.go
+++ b/pkg/bindings/manifests/manifests.go
@@ -11,7 +11,7 @@ import (
"strconv"
"strings"
- "github.com/containers/image/v5/manifest"
+ "github.com/containers/common/libimage"
imageTypes "github.com/containers/image/v5/types"
"github.com/containers/podman/v4/pkg/auth"
"github.com/containers/podman/v4/pkg/bindings"
@@ -71,7 +71,7 @@ func Exists(ctx context.Context, name string, options *ExistsOptions) (bool, err
}
// Inspect returns a manifest list for a given name.
-func Inspect(ctx context.Context, name string, _ *InspectOptions) (*manifest.Schema2List, error) {
+func Inspect(ctx context.Context, name string, _ *InspectOptions) (*libimage.ManifestListData, error) {
conn, err := bindings.GetClient(ctx)
if err != nil {
return nil, err
@@ -83,7 +83,7 @@ func Inspect(ctx context.Context, name string, _ *InspectOptions) (*manifest.Sch
}
defer response.Body.Close()
- var list manifest.Schema2List
+ var list libimage.ManifestListData
return &list, response.Process(&list)
}