Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvDurationWithRange ¶ added in v0.15.0
func GetEnvDurationWithRange(envVar string, defaultValue, min, max time.Duration) (time.Duration, error)
GetEnvDurationWithRange returns the time.Duration value of the environment variable specified by `envVar`. If the environment variable is not set, it returns `defaultValue`. If the value is set but is not valid (not a valid time.Duration or falls outside the specified range [minValue, maxValue] inclusively), it returns `defaultValue` and an error.
func IsTruthy ¶
IsTruthy returns true if a string is a truthy value. Truthy values are "y", "yes", "true", "t", "on", "1" (case-insensitive); everything else is false.
func IsValidPEM ¶
IsValidPEM validates the provided input has PEM formatted block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.