(bucket: string, region: string)
| 36 | readonly region: string; |
| 37 | |
| 38 | constructor(bucket: string, region: string) { |
| 39 | const maybeInstance = clientsByRegion.get(region); |
| 40 | if (maybeInstance) { |
| 41 | this.instance = maybeInstance; |
| 42 | } else { |
| 43 | this.instance = new S3({region, credentials: awsCredentials()}); |
| 44 | clientsByRegion.set(region, this.instance); |
| 45 | } |
| 46 | this.bucket = bucket; |
| 47 | this.region = region; |
| 48 | } |
| 49 | |
| 50 | async get(key: string, path: string): Promise<GetResult> { |
| 51 | try { |
nothing calls this directly
no test coverage detected