metadata

package
v0.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

func UniqueID added in v0.12.3

func UniqueID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL