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

Function IsAmazonPrivateLinkEndpoint

pkg/s3utils/utils.go:271–276  ·  view source on GitHub ↗

IsAmazonPrivateLinkEndpoint - Match if it is exactly Amazon S3 PrivateLink interface endpoint See https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html.

(endpointURL url.URL)

Source from the content-addressed store, hash-verified

269// IsAmazonPrivateLinkEndpoint - Match if it is exactly Amazon S3 PrivateLink interface endpoint
270// See https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html.
271func IsAmazonPrivateLinkEndpoint(endpointURL url.URL) bool {
272 if endpointURL == sentinelURL {
273 return false
274 }
275 return amazonS3HostPrivateLink.MatchString(endpointURL.Hostname())
276}
277
278// IsGoogleEndpoint - Match if it is exactly Google cloud storage endpoint.
279func IsGoogleEndpoint(endpointURL url.URL) bool {

Callers 2

makeTargetURLMethod · 0.92

Calls

no outgoing calls

Tested by 1