distribution/registry/storage/driver
Kirat Singh 3117e2eb2f
Use default http.Transport for AWS S3 session
Previously we used a custom Transport in order to modify the user agent header.
This prevented the AWS SDK from being able to customize SSL and other client TLS
parameters since it could not understand the Transport type.

Instead we can simply use the SDK function MakeAddToUserAgentFreeFormHandler to
customize the UserAgent if necessary and leave all the TLS configuration to the
AWS SDK.

The only exception being SkipVerify which we have to handle, but we can set it
onto the standard http.Transport which does not interfere with the SDKs ability
to set other options.

Signed-off-by: Kirat Singh <kirat.singh@gmail.com>
2023-02-15 13:37:01 -05:00
..
azure replace deprecated io/ioutil 2022-11-04 23:47:52 +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 replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
gcs replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
inmemory Merge pull request #3686 from m5i-work/exp 2022-11-11 17:07:14 +00:00
middleware cloudfront: use strings.Equalfold() 2022-11-10 22:38:16 +01:00
oss replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
s3-aws Use default http.Transport for AWS S3 session 2023-02-15 13:37:01 -05:00
swift replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
testdriver go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
testsuites replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
fileinfo.go format code with gofumpt 2022-11-03 22:48:20 +01:00
storagedriver.go replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +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