...

Package googlecloud

import "google.golang.org/grpc/internal/googlecloud"
Overview
Index

Overview ▾

Package googlecloud contains internal helpful functions for google cloud.

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.