MCPcopy
hub / github.com/minio/minio-go / getS3ExpressEndpoint

Function getS3ExpressEndpoint

endpoints.go:255–264  ·  view source on GitHub ↗

getS3ExpressEndpoint get Amazon S3 Express endpoing based on the region optionally if zonal is set returns first zonal endpoint.

(region string, zonal bool)

Source from the content-addressed store, hash-verified

253// getS3ExpressEndpoint get Amazon S3 Express endpoing based on the region
254// optionally if zonal is set returns first zonal endpoint.
255func 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.
267func getS3Endpoint(bucketLocation string, useDualstack bool) (endpoint string) {

Callers 2

createSessionRequestMethod · 0.85
makeTargetURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected