Documentation ¶
Overview ¶
Package util provides functions used across command line binaries for setup/exection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChoosePolicy ¶
func ChoosePolicy(logger logr.Logger, defaultPolicy string, policyFlag string, policyFile string) string
ChoosePolicy selects an OPA policy based on the flags, or calls log.Fatal if an invalid combination is provided.
func StripTimeout ¶ added in v1.23.3
func ValidateAndAddPort ¶ added in v1.7.0
ValidateAndAddPort will take a given target address and optionally add a default port onto it if a port is missing. This will also take in account optional dial timeout suffix and make sure the returned value has that if it exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.