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

Function getS3ExpressEndpoint

endpoints.go:251–260  ·  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

249// getS3ExpressEndpoint get Amazon S3 Express endpoing based on the region
250// optionally if zonal is set returns first zonal endpoint.
251func getS3ExpressEndpoint(region string, zonal bool) (endpoint string) {
252 s3ExpEndpoint, ok := awsS3ExpressEndpointMap[region]
253 if !ok {
254 return ""
255 }
256 if zonal {
257 return s3ExpEndpoint.zonalEndpoints[0]
258 }
259 return s3ExpEndpoint.regionalEndpoint
260}
261
262// getS3Endpoint get Amazon S3 endpoint based on the bucket location.
263func 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