package googlecloud
import "google.golang.org/grpc/internal/googlecloud"
Package googlecloud contains internal helpful functions for google cloud.
Index ¶
Functions ¶
func 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.
Source Files ¶
googlecloud.go manufacturer_linux.go
- Version
- v1.70.0 (latest)
- Published
- Jan 23, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 32 minutes ago –
Tools for package owners.