]> source.dussan.org Git - gitea.git/commit
Add GET and DELETE endpoints for Docker blob uploads (#21367)
authorKN4CK3R <admin@oldschoolhack.me>
Fri, 7 Oct 2022 15:30:59 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 15:30:59 +0000 (23:30 +0800)
commit69fc510d6dcf9cda7993eae8cd5c7725b345a9a1
tree3ad6e0f5a1d86cc57b6a7e9fb97fd46c97b095e4
parentd94f15c2fd921722796a4cfdbbf266dd3017525c
Add GET and DELETE endpoints for Docker blob uploads (#21367)

This PR adds support for
https://docs.docker.com/registry/spec/api/#get-blob-upload
https://docs.docker.com/registry/spec/api/#delete-blob-upload

Both are not required by the OCI spec but some clients call these
endpoints.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
routers/api/packages/api.go
routers/api/packages/container/container.go
tests/integration/api_packages_container_test.go