googlecloud
v1.85.0
google.golang.org/grpc/internal/googlecloud
Documentation
pkg.go.dev ↗Package googlecloud contains internal helpful functions for google cloud.
Functions
OnGCE
func OnGCE() bool
OnGCE returns whether the client is running on GCE.
It provides similar functionality as metadata.OnGCE from the cloud library package. We keep this to avoid depending on the cloud library module.