diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-08 17:57:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 17:57:10 +0200 |
commit | 13db0f2b61b17e6f959fff832b40270352cd54da (patch) | |
tree | ab1c4ca5ea7926e0731136bb4e358c6d3407f8da /pkg/bindings/manifests/manifests.go | |
parent | 2547fe53127057ce8f3ba065b4263fea32be7f0d (diff) | |
parent | 20407a2f1fadb1488caac1560dfdd56facff4153 (diff) | |
download | podman-13db0f2b61b17e6f959fff832b40270352cd54da.tar.gz podman-13db0f2b61b17e6f959fff832b40270352cd54da.tar.bz2 podman-13db0f2b61b17e6f959fff832b40270352cd54da.zip |
Merge pull request #6118 from baude/v2bindingsenforce
set binding tests to required
Diffstat (limited to 'pkg/bindings/manifests/manifests.go')
-rw-r--r-- | pkg/bindings/manifests/manifests.go | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/pkg/bindings/manifests/manifests.go b/pkg/bindings/manifests/manifests.go index b85169410..3e0ef0325 100644 --- a/pkg/bindings/manifests/manifests.go +++ b/pkg/bindings/manifests/manifests.go @@ -125,23 +125,24 @@ func Push(ctx context.Context, name string, destination *string, all *bool) (str return idr.ID, response.Process(&idr) } +// There is NO annotate endpoint. this binding could never work // Annotate updates the image configuration of a given manifest list -func Annotate(ctx context.Context, name, digest string, options image.ManifestAnnotateOpts) (string, error) { - var idr handlers.IDResponse - conn, err := bindings.GetClient(ctx) - if err != nil { - return "", err - } - params := url.Values{} - params.Set("digest", digest) - optionsString, err := jsoniter.MarshalToString(options) - if err != nil { - return "", err - } - stringReader := strings.NewReader(optionsString) - response, err := conn.DoRequest(stringReader, http.MethodPost, "/manifests/%s/annotate", params, name) - if err != nil { - return "", err - } - return idr.ID, response.Process(&idr) -} +//func Annotate(ctx context.Context, name, digest string, options image.ManifestAnnotateOpts) (string, error) { +// var idr handlers.IDResponse +// conn, err := bindings.GetClient(ctx) +// if err != nil { +// return "", err +// } +// params := url.Values{} +// params.Set("digest", digest) +// optionsString, err := jsoniter.MarshalToString(options) +// if err != nil { +// return "", err +// } +// stringReader := strings.NewReader(optionsString) +// response, err := conn.DoRequest(stringReader, http.MethodPost, "/manifests/%s/annotate", params, name) +// if err != nil { +// return "", err +// } +// return idr.ID, response.Process(&idr) +//} |