Documentation ¶
Index ¶
- func GetItems(list client.ObjectList) []client.Object
- func Hash(o interface{}) string
- func IntStrPtr(value intstr.IntOrString) *intstr.IntOrString
- func MergeMaps(base map[string]string, merges ...map[string]string) map[string]string
- func Metav1DurationPtr(value time.Duration) *metav1.Duration
- func ObjectKey(o client.Object) types.NamespacedName
- func Unique(stringSlice []string) []string
- func WrapError(context string, err error) error
- type LogConfig
- type Logger
- type MultiError
- type ProfilerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItems ¶ added in v0.17.3
func GetItems(list client.ObjectList) []client.Object
this is an ugly function to retrieve the list of Items from a client.ObjectList because the interface doesn't have a GetItems method
func Hash ¶ added in v0.12.0
func Hash(o interface{}) string
Hash returns a hash of the passed object
func IntStrPtr ¶
func IntStrPtr(value intstr.IntOrString) *intstr.IntOrString
func MergeMaps ¶ added in v0.12.0
MergeMaps merges a list maps into the first one. B overrides A if keys collide.
func Metav1DurationPtr ¶ added in v0.18.0
Types ¶
type MultiError ¶ added in v0.13.0
type MultiError []error
Type MultiError can be used for iterative operations that must keep going even if errors are detected. It will return the list of all encountered errors. MultiError implements the Error interface and can be passed around as a normal error.
func (MultiError) Error ¶ added in v0.13.0
func (me MultiError) Error() string
type ProfilerConfig ¶ added in v0.14.0
type ProfilerConfig struct { EnableProfiler bool `envconfig:"PROFILER_ENABLE" default:"false"` ProfilerBindAddress string `envconfig:"PROFILER_BIND_ADDRESS" default:"0.0.0.0"` ProfilerBinbPort string `envconfig:"PROFILER_BIND_ORT" default:"6060"` Log logr.Logger }
func (ProfilerConfig) Setup ¶ added in v0.14.0
func (cfg ProfilerConfig) Setup() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.