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

Function IsAmazonFIPSEndpoint

pkg/s3utils/utils.go:262–267  ·  view source on GitHub ↗

IsAmazonFIPSEndpoint - Match if it is exactly Amazon S3 FIPS endpoint. See https://aws.amazon.com/compliance/fips.

(endpointURL url.URL)

Source from the content-addressed store, hash-verified

260// IsAmazonFIPSEndpoint - Match if it is exactly Amazon S3 FIPS endpoint.
261// See https://aws.amazon.com/compliance/fips.
262func IsAmazonFIPSEndpoint(endpointURL url.URL) bool {
263 if endpointURL == sentinelURL {
264 return false
265 }
266 return strings.HasPrefix(endpointURL.Hostname(), "s3-fips") && strings.HasSuffix(endpointURL.Hostname(), ".amazonaws.com")
267}
268
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.

Callers 2

makeTargetURLMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected