envhelper

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

View Source
const (
	EnvKeyPodName      = "POD_NAME"
	EnvKeyPodNamespace = "POD_NAMESPACE"
)

Kubernetes pod identification

Variables

This section is empty.

Functions

func EnvListToMap added in v0.6.0

func EnvListToMap(envList []string) map[string]string

func Expand

func Expand(s string, mapping func(varName, origin string) string) string

Expand replaces ${var}, $(var) or $var in the string based on the mapping function.

func ThisPodNS

func ThisPodNS() string

ThisPodNS returns the value of env POD_NAMESPACE

func ThisPodName

func ThisPodName() string

ThisPodName returns the value of env POD_NAME

Types

This section is empty.

Jump to

Keyboard shortcuts

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