Storage implements S3 Storage
| 25 | |
| 26 | // Storage implements S3 Storage |
| 27 | type Storage struct { |
| 28 | clientOptions []func(*s3.Options) |
| 29 | |
| 30 | defaultClient s3Client |
| 31 | defaultConfig aws.Config |
| 32 | |
| 33 | clientsByRegion map[string]s3Client |
| 34 | clientsByBucket map[string]s3Client |
| 35 | |
| 36 | mu sync.RWMutex |
| 37 | |
| 38 | config *Config |
| 39 | } |
| 40 | |
| 41 | // New creates a new S3 storage instance |
| 42 | func New(config *Config, trans *http.Transport) (*Storage, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected