package env
import "k8s.io/kubernetes/pkg/util/env"
Index ¶
- func GetEnvAsFloat64OrFallback(key string, defaultValue float64) (float64, error)
- func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error)
- func GetEnvAsStringOrFallback(key, defaultValue string) string
Functions ¶
func GetEnvAsFloat64OrFallback ¶
GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for the given key and falls back to the given defaultValue if not set
func GetEnvAsIntOrFallback ¶
GetEnvAsIntOrFallback returns the env variable (parsed as integer) for the given key and falls back to the given defaultValue if not set
func GetEnvAsStringOrFallback ¶
GetEnvAsStringOrFallback returns the env variable for the given key and falls back to the given defaultValue if not set
Source Files ¶
env.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.