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

Function IsGoogleEndpoint

pkg/s3utils/utils.go:279–284  ·  view source on GitHub ↗

IsGoogleEndpoint - Match if it is exactly Google cloud storage endpoint.

(endpointURL url.URL)

Source from the content-addressed store, hash-verified

277
278// IsGoogleEndpoint - Match if it is exactly Google cloud storage endpoint.
279func 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
287func percentEncodeSlash(s string) string {

Callers 12

validateMethod · 0.92
isValidEndpointURLFunction · 0.92
putObjectMethod · 0.92
putObjectDoMethod · 0.92
validateMethod · 0.92
PutObjectMethod · 0.92
PresignedPostPolicyMethod · 0.92
TestIsGoogleEndpointFunction · 0.85
IsVirtualHostSupportedFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsGoogleEndpointFunction · 0.68