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.71.1 (latest)
- Published
- Mar 28, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 8 hours ago –
Tools for package owners.