Documentation ¶
Index ¶
- func GetBoolAsStringEnvVar(env string, defaultVal bool) bool
- func GetEnv(env, defaultVal string) string
- func GetIntFromStringEnvVar(env string, defaultVal int) (int, error, string)
- func IsStrictMode(input string) bool
- func IsValidNetworkPolicyEnforcingMode(input string) bool
- type NetworkPolicyEnforcingMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolAsStringEnvVar ¶
Parse environment variable and return boolean representation of string, or default value if environment variable is unset
func GetIntFromStringEnvVar ¶ added in v1.15.0
Parse environment variable and return integer representation of string, or default value if environment variable is unset
func IsStrictMode ¶ added in v1.17.1
IsStrictMode checks if strict mode is enabled
func IsValidNetworkPolicyEnforcingMode ¶ added in v1.17.1
IsValidNetworkPolicyEnforcingMode checks if the input string matches any of the enum values
Types ¶
type NetworkPolicyEnforcingMode ¶ added in v1.17.1
type NetworkPolicyEnforcingMode string
NetworkPolicyEnforcingMode is the mode of network policy enforcement
const ( // None : no network policy enforcement None NetworkPolicyEnforcingMode = "none" // Strict : strict network policy enforcement Strict NetworkPolicyEnforcingMode = "strict" // Standard :standard network policy enforcement Standard NetworkPolicyEnforcingMode = "standard" )
Click to show internal directories.
Click to hide internal directories.