Documentation ¶
Index ¶
- func GetInt64FromPath(value *unstructured.Unstructured, path string, prefixFields []string) (*int64, error)
- func GetLabelSelectorFromPath(obj *unstructured.Unstructured, path string, prefixFields []string) (*metav1.LabelSelector, error)
- func SetInt64FromPath(value *unstructured.Unstructured, path string, replicas *int64, ...) error
- func SplitDotPath(dotPath string, prefixFields []string) []string
- func ToSlashPath(dotPath string) (output string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInt64FromPath ¶
func GetInt64FromPath(value *unstructured.Unstructured, path string, prefixFields []string) (*int64, error)
GetInt64FromPath gets an int64 value at path of an unstructured object, optionally wrapped under prefixFields.
func GetLabelSelectorFromPath ¶
func GetLabelSelectorFromPath(obj *unstructured.Unstructured, path string, prefixFields []string) (*metav1.LabelSelector, error)
GetInt64FromPath returns value at path (optionally under prefixFields) in the unstructured object as a metav1.LabelSelector. The field value must be a string or a map[string]interface{}, both of which must be convertible into a metav1.LabelSelector.
func SetInt64FromPath ¶
func SetInt64FromPath(value *unstructured.Unstructured, path string, replicas *int64, prefixFields []string) error
GetInt64FromPath sets an int64 value at path of an unstructured object, optionally wrapped under prefixFields.
func SplitDotPath ¶
func ToSlashPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.