Documentation ¶
Overview ¶
Package metadata implements metadata related utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCloudRunJob ¶ added in v0.12.3
func IsCloudRunJob() bool
IsCloudRunJob return true if we are running as a CloudRun job.
func IsCloudRunService ¶ added in v0.12.3
func IsCloudRunService() bool
IsCloudRunService return true if we are running as a CloudRun service.
func IsKubernetes ¶
func IsKubernetes() bool
IsKubernetes return true if running on Kubernetes. It uses the environment variable KUBERNETES_SERVICE_HOST to decide if we we are running Kubernetes.
func KubernetesNamespace ¶
func KubernetesNamespace() string
KubernetesNamespace returns the Kubernetes namespace. It returns an empty string if there is an error in retrieving the namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.