Documentation ¶
Index ¶
- func IsNil(actual interface{}) bool
- func IsSlice(actual interface{}) bool
- func IterateOverSlice(actual interface{}, visitor func(value interface{}) bool)
- func MatchElementsInSlice(actual interface{}, matcher func(actual interface{}) (success bool, err error)) (bool, error)
- func ToPointer(actual interface{}) interface{}
- func ToUnstructured(actual interface{}) (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateOverSlice ¶
func IterateOverSlice(actual interface{}, visitor func(value interface{}) bool)
IterateOverSlice iterates over the provides interface{} until all elements were visited or until the visior returns false
func MatchElementsInSlice ¶
func MatchElementsInSlice(actual interface{}, matcher func(actual interface{}) (success bool, err error)) (bool, error)
MatchElementsInSlice applies a matcher individually to each element in the slice and returns as soon as the matcher fails on an element.
func ToPointer ¶
func ToPointer(actual interface{}) interface{}
ToPointer returns a new pointer to the provided interface{}, if the provided value is not already a pointer. if the original value is already a pointer it gets returned directly.
func ToUnstructured ¶ added in v0.52.0
func ToUnstructured(actual interface{}) (*unstructured.Unstructured, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.