IsAmazonFIPSEndpoint - Match if it is exactly Amazon S3 FIPS endpoint. See https://aws.amazon.com/compliance/fips.
(endpointURL url.URL)
| 260 | // IsAmazonFIPSEndpoint - Match if it is exactly Amazon S3 FIPS endpoint. |
| 261 | // See https://aws.amazon.com/compliance/fips. |
| 262 | func 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. |
no outgoing calls
no test coverage detected