IsGoogleEndpoint - Match if it is exactly Google cloud storage endpoint.
(endpointURL url.URL)
| 277 | |
| 278 | // IsGoogleEndpoint - Match if it is exactly Google cloud storage endpoint. |
| 279 | func IsGoogleEndpoint(endpointURL url.URL) bool { |
| 280 | if endpointURL == sentinelURL { |
| 281 | return false |
| 282 | } |
| 283 | return endpointURL.Hostname() == "storage.googleapis.com" |
| 284 | } |
| 285 | |
| 286 | // Expects ascii encoded strings - from output of urlEncodePath |
| 287 | func percentEncodeSlash(s string) string { |
no outgoing calls