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.23.14
- Published
- Nov 9, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 2 seconds ago –
Tools for package owners.