distribution/registry/storage/driver
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
..
azure format code with gofumpt 2022-11-03 22:48:20 +01:00
base format code with gofumpt 2022-11-03 22:48:20 +01:00
factory go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
filesystem format code with gofumpt 2022-11-03 22:48:20 +01:00
gcs Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
inmemory format code with gofumpt 2022-11-03 22:48:20 +01:00
middleware format code with gofumpt 2022-11-03 22:48:20 +01:00
oss Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
s3-aws Enable pushing empty blobs 2023-03-27 10:11:07 +01:00
swift Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
testdriver go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
testsuites Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
fileinfo.go format code with gofumpt 2022-11-03 22:48:20 +01:00
storagedriver.go Merge pull request #3635 from milosgajdos/make-s3-driver-delete-faster 2022-11-04 16:56:41 +01:00
walk.go storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
walk_test.go format code with gofumpt 2022-11-03 22:48:20 +01:00