Documentation ¶
Index ¶
- func AllowedRubyEnvironment(environmentVariables []string) []string
- func ExtractValue(environment []string, key string) string
- func GetBool(name string, fallback bool) (bool, error)
- func GetDuration(name string, fallback time.Duration) (time.Duration, error)
- func GetInt(name string, fallback int) (int, error)
- func GetString(name string, fallback string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedRubyEnvironment ¶
AllowedRubyEnvironment filters the given set of environment variables and returns only those which are allowed when executing Ruby commands.
func ExtractValue ¶
ExtractValue returns the value of the environment variable with the given key. The given key should not have a trailing "=". If the same key occurrs multiple times in the environment, then any later occurrences will override previous ones.
func GetBool ¶
GetBool fetches and parses a boolean typed environment variable
If the variable is empty, returns `fallback` and no error. If there is an error, returns `fallback` and the error.
func GetDuration ¶
GetDuration fetches and parses a duration typed environment variable
Types ¶
This section is empty.