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

Function IsAmazonOutpostsEndpoint

pkg/s3utils/utils.go:223–228  ·  view source on GitHub ↗

IsAmazonOutpostsEndpoint - Match if the endpoint is S3 on Outposts endpoint.

(endpointURL url.URL)

Source from the content-addressed store, hash-verified

221
222// IsAmazonOutpostsEndpoint - Match if the endpoint is S3 on Outposts endpoint.
223func IsAmazonOutpostsEndpoint(endpointURL url.URL) bool {
224 if endpointURL == sentinelURL {
225 return false
226 }
227 return amazonS3HostOutposts.MatchString(endpointURL.Hostname())
228}
229
230// IsAmazonEndpoint - Match if it is exactly Amazon S3 endpoint.
231// S3 on Outposts is not treated as Amazon S3 here so that the client keeps path-style and does not replace the host.

Callers 6

NewFunction · 0.92
newRequestMethod · 0.92
isValidEndpointURLFunction · 0.92
IsAmazonEndpointFunction · 0.85

Calls

no outgoing calls

Tested by 1