Documentation ¶
Overview ¶
Package utils offers functions of general utility in other parts of the system
Index ¶
- func GenericToRuntime(obj map[string]interface{}, rtObj interface{}) error
- func Retry(timeout time.Duration, backoff time.Duration, f func() (bool, error)) (bool, error)
- func RuntimeToGeneric(obj interface{}) (map[string]interface{}, error)
- func RuntimeToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
- func UnstructuredToRuntime(uObj *unstructured.Unstructured, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericToRuntime ¶
GenericToRuntime converts a generic object to a Runtime object
func Retry ¶
Retry retries a function until it returns true, error, or the timeout expires. If the function returns false, a new attempt is tried after the backoff period
func RuntimeToGeneric ¶
RuntimeToGeneric converts a runtime object in a unstructured object
func RuntimeToUnstructured ¶
func RuntimeToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
RuntimeToUnstructured converts a runtime object in a unstructured object
func UnstructuredToRuntime ¶
func UnstructuredToRuntime(uObj *unstructured.Unstructured, obj interface{}) error
UnstructuredToRuntime converts an unstructured object in a runtime object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.