Documentation
¶
Index ¶
- func GetEnvBool(key string, defaultVal bool, logger logr.Logger) bool
- func GetEnvDuration(key string, defaultVal time.Duration, logger logr.Logger) time.Duration
- func GetEnvFloat(key string, defaultVal float64, logger logr.Logger) float64
- func GetEnvInt(key string, defaultVal int, logger logr.Logger) int
- func GetEnvString(key string, defaultVal string, logger logr.Logger) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvBool ¶
GetEnvBool gets a boolean from an environment variable with a default value.
func GetEnvDuration ¶
GetEnvDuration gets a time.Duration from an environment variable with a default value.
func GetEnvFloat ¶
GetEnvFloat gets a float64 from an environment variable with a default value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.