cockroach: github.com/abhinavdahiya/cockroach/util/envutil Index | Files

package envutil

import "github.com/abhinavdahiya/cockroach/util/envutil"

Index

Package Files

env.go

func ClearEnvCache Uses

func ClearEnvCache()

ClearEnvCache clears saved environment values so that a new read access the environment again. (Used for testing)

func EnvOrDefaultBool Uses

func EnvOrDefaultBool(name string, value bool) bool

EnvOrDefaultBool returns the value set by the specified environment variable, if any, otherwise the specified default value.

func EnvOrDefaultBytes Uses

func EnvOrDefaultBytes(name string, value int64) int64

EnvOrDefaultBytes returns the value set by the specified environment variable, if any, otherwise the specified default value.

func EnvOrDefaultDuration Uses

func EnvOrDefaultDuration(name string, value time.Duration) time.Duration

EnvOrDefaultDuration returns the value set by the specified environment variable, if any, otherwise the specified default value.

func EnvOrDefaultInt Uses

func EnvOrDefaultInt(name string, value int) int

EnvOrDefaultInt returns the value set by the specified environment variable, if any, otherwise the specified default value.

func EnvOrDefaultInt64 Uses

func EnvOrDefaultInt64(name string, value int64) int64

EnvOrDefaultInt64 returns the value set by the specified environment variable, if any, otherwise the specified default value.

func EnvOrDefaultString Uses

func EnvOrDefaultString(name string, value string) string

EnvOrDefaultString returns the value set by the specified environment variable, if any, otherwise the specified default value.

func GetEnvReport Uses

func GetEnvReport() string

GetEnvReport dumps all configuration variables that may have been used and their value.

func GetShellCommand Uses

func GetShellCommand(cmd string) []string

GetShellCommand returns a complete command to run with a prefix of the command line.

func VarName Uses

func VarName(name string) string

VarName returns the name of the environment variable corresponding to a configuration key or command-line flag name.

Package envutil imports 10 packages (graph). Updated 2017-03-13. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).