distribution/registry/storage/driver/s3-aws
Thomas Way 5ee5aaa058
fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size
Some S3 compatible object storage systems like R2 require that all
multipart chunks are the same size. This was mostly true before, except
the final chunk was larger than the requested chunk size which causes
uploads to fail.

In addition, the two byte slices have been replaced with a single
*bytes.Buffer and the surrounding code simplified significantly.

Fixes: #3873

Signed-off-by: Thomas Way <thomas@6f.io>
2024-10-30 21:46:36 +00:00
..
s3_32bit.go fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size 2024-10-30 21:46:36 +00:00
s3_64bit.go fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size 2024-10-30 21:46:36 +00:00
s3_test.go fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size 2024-10-30 21:46:36 +00:00
s3_v2_signer.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
s3.go fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size 2024-10-30 21:46:36 +00:00