env

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeName

func GetNodeName() (string, error)

GetNodeName returns the node's name used in Kubernetes, based on the priority: - Environment variable NODE_NAME, which should be set by Downward API - OS's hostname

func GetPodName

func GetPodName() string

GetPodName returns the pod name where the code executes

Types

This section is empty.

Jump to

Keyboard shortcuts

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