distribution/registry
Milos Gajdos 5fa926a609
Enable pushing empty blobs
This is an edge case when we are trying to upload an empty chunk of data using
a MultiPart upload. As a result we are trying to complete the MultipartUpload
with an empty slice of `completedUploadedParts` which will always lead to 400
being returned from S3 See: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#CompletedMultipartUpload
Solution: we upload an empty i.e. 0 byte part as a single part and then append it
to the completedUploadedParts slice used to complete the Multipart upload.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-03-27 10:11:07 +01:00
..
api Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
auth Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
client Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
handlers Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware format code with gofumpt 2022-11-03 22:48:20 +01:00
proxy Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
storage Enable pushing empty blobs 2023-03-27 10:11:07 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go format code with gofumpt 2022-11-03 22:48:20 +01:00
registry_test.go format code with gofumpt 2022-11-03 22:48:20 +01:00
root.go format code with gofumpt 2022-11-03 22:48:20 +01:00