kubernetes: k8s.io/kubernetes/pkg/util/env Index | Files

package env

import "k8s.io/kubernetes/pkg/util/env"

Index

Package Files

env.go

func GetEnvAsFloat64OrFallback Uses

func GetEnvAsFloat64OrFallback(key string, defaultValue float64) (float64, error)

GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for the given key and falls back to the given defaultValue if not set

func GetEnvAsIntOrFallback Uses

func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error)

GetEnvAsIntOrFallback returns the env variable (parsed as integer) for the given key and falls back to the given defaultValue if not set

func GetEnvAsStringOrFallback Uses

func GetEnvAsStringOrFallback(key, defaultValue string) string

GetEnvAsStringOrFallback returns the env variable for the given key and falls back to the given defaultValue if not set

Package env imports 2 packages (graph) and is imported by 104 packages. Updated 2019-10-09. Refresh now. Tools for package owners.