env

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvBool

func GetEnvBool(key string, defaultVal bool, logger logr.Logger) bool

GetEnvBool gets a boolean from an environment variable with a default value.

func GetEnvDuration

func GetEnvDuration(key string, defaultVal time.Duration, logger logr.Logger) time.Duration

GetEnvDuration gets a time.Duration from an environment variable with a default value.

func GetEnvFloat

func GetEnvFloat(key string, defaultVal float64, logger logr.Logger) float64

GetEnvFloat gets a float64 from an environment variable with a default value.

func GetEnvInt

func GetEnvInt(key string, defaultVal int, logger logr.Logger) int

GetEnvInt gets an int from an environment variable with a default value.

func GetEnvString

func GetEnvString(key string, defaultVal string, logger logr.Logger) string

GetEnvString gets a string from an environment variable with a default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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