distribution/registry/storage/driver
Milos Gajdos 4baddbc608
fix: update S3 storage driver writer
This commit updates (writer).Writer() method in S3 storage driver to
handle the case where an append is attempted to a zer-size content.

S3 does not allow appending to already committed content, so we are
optiing to provide the following case as a narrowed down behaviour:
Writer can only append to zero byte content - in that case, a new S3
MultipartUpload is created that will be used for overriding the already
committed zero size content.

Appending to non-zero size content fails with error.

Co-authored-by: Cory Snider <corhere@gmail.com>
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-12-13 09:22:48 +00:00
..
azure refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
base storage/driver: replace URLFor method 2023-10-27 10:58:37 -04:00
factory storage/driver: plumb contexts into factories 2023-10-27 17:48:57 -04:00
filesystem refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
gcs refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
inmemory refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
middleware refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
s3-aws fix: update S3 storage driver writer 2023-12-13 09:22:48 +00:00
testsuites refactor: apply suggestions from code review 2023-12-13 09:22:48 +00:00
errors_test.go feat: add tparallel linter to improve handling parallel tests 2023-11-29 21:40:20 +00:00
fileinfo.go format code with gofumpt 2022-11-03 22:48:20 +01:00
storagedriver.go fix: update S3 storage driver writer 2023-12-13 09:22:48 +00:00
walk.go Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00
walk_test.go Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00