Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v0.21.11 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsForbiddenEnvVar added in v0.21.0

func IsForbiddenEnvVar(name string) bool

func MergeEnvVars

func MergeEnvVars(from []corev1.EnvVar, into []corev1.EnvVar, overwriteValues bool) ([]corev1.EnvVar, error)

MergeEnvVars merges one slice of corev1.EnvVar into another slice of corev1.EnvVar if overwriteValues is false, this function will return an error if a duplicate EnvVar name is encountered if overwriteValues is true, this function will overwrite the existing value with the new value if a duplicate is encountered

func SetForbiddenEnvVars added in v0.21.0

func SetForbiddenEnvVars(entries []string)

SetForbiddenEnvVars replaces the forbidden environment variable blocklist. Entries ending with "*" are treated as prefix matches; all others are exact matches.

Types

This section is empty.

Jump to

Keyboard shortcuts

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