MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Storage

Struct Storage

storage/s3/storage.go:27–39  ·  view source on GitHub ↗

Storage implements S3 Storage

Source from the content-addressed store, hash-verified

25
26// Storage implements S3 Storage
27type 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
42func New(config *Config, trans *http.Transport) (*Storage, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected