IsAmazonOutpostsEndpoint - Match if the endpoint is S3 on Outposts endpoint.
(endpointURL url.URL)
| 221 | |
| 222 | // IsAmazonOutpostsEndpoint - Match if the endpoint is S3 on Outposts endpoint. |
| 223 | func 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. |
no outgoing calls