...
Package googlecloud
import "google.golang.org/grpc/internal/googlecloud"
- Overview
- Index
Package googlecloud contains internal helpful functions for google cloud.
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.