getS3ExpressEndpoint get Amazon S3 Express endpoing based on the region optionally if zonal is set returns first zonal endpoint.
(region string, zonal bool)
| 253 | // getS3ExpressEndpoint get Amazon S3 Express endpoing based on the region |
| 254 | // optionally if zonal is set returns first zonal endpoint. |
| 255 | func getS3ExpressEndpoint(region string, zonal bool) (endpoint string) { |
| 256 | s3ExpEndpoint, ok := awsS3ExpressEndpointMap[region] |
| 257 | if !ok { |
| 258 | return "" |
| 259 | } |
| 260 | if zonal { |
| 261 | return s3ExpEndpoint.zonalEndpoints[0] |
| 262 | } |
| 263 | return s3ExpEndpoint.regionalEndpoint |
| 264 | } |
| 265 | |
| 266 | // getS3Endpoint get Amazon S3 endpoint based on the bucket location. |
| 267 | func getS3Endpoint(bucketLocation string, useDualstack bool) (endpoint string) { |
no outgoing calls
no test coverage detected