distribution/registry
Adam Wolfe Gordon 95f1eea5f5 manifests: Return UNSUPPORTED when deleting manifests by tag
The OCI distribution spec allows implementations to support deleting manifests
by tag, but also permits returning the `UNSUPPORTED` error code for such
requests. docker/distribution has never supported deleting manifests by tag, but
previously returned `DIGEST_INVALID`.

The `Tag` and `Digest` fields of the `manifestHandler` are already correctly
populated based on which kind of reference was given in the request URL. Return
`UNSUPPORTED` if the `Tag` field is populated.

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
2020-08-04 11:40:27 -06:00
..
api Merge pull request #2813 from lucab/ups/spec-json-binary 2019-03-01 14:26:54 -08:00
auth default autoredirect to false 2019-01-04 11:05:12 -08:00
client Fix gosimple checks 2020-03-18 15:52:34 -07:00
handlers manifests: Return UNSUPPORTED when deleting manifests by tag 2020-08-04 11:40:27 -06:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware context: remove definition of Context 2017-08-11 15:53:31 -07:00
proxy clean up code because err is always nil 2020-07-22 10:54:46 +08:00
storage Fix err shadowing in gcs driver 2020-03-18 11:41:34 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
registry_test.go Add support to gracefully shutdown the server 2018-08-20 10:01:26 -07:00
root.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00