package
0.8.2
Repository: https://github.com/openebs/lib-csi.git
Documentation: pkg.go.dev

# Functions

Get fetches value from the provided environment variable NOTE: This is an implementation of EnvironmentGetter.
GetOrDefault fetches value from the provided environment variable which on empty returns the defaultValue NOTE: os.Getenv is used here instead of os.LookupEnv because it is not required to know if the environment variable is defined on the system.
Lookup looks up an environment variable NOTE: This is an implementation of EnvironmentLookup.
LookupOrFalse looks up an environment variable and returns a string "false" if environment variable is not present.
Set sets the provided environment variable NOTE: This is an implementation of EnvironmentSetter.
Truthy returns boolean based on the environment variable's value The lookup value can be truthy (i.e.

# Constants

KubeConfig is the ENV variable to fetch kubernetes kubeconfig.
KubeMaster is the ENV variable to fetch kubernetes master's address.

# Type aliases

EnvironmentGetter abstracts fetching value from an environment variable.
EnvironmentLookup abstracts looking up an environment variable.
EnvironmentSetter abstracts setting of environment variable.