Documentation
¶
Index ¶
- func NestedField(obj map[string]interface{}, fields ...string) (interface{}, bool, error)
- func NestedFieldAsInt(obj map[string]interface{}, fields ...string) (intVal int, ok bool, err error)
- func NestedFieldAsString(obj map[string]interface{}, fields ...string) (strVal string, ok bool, err error)
- func SetNestedField(obj map[string]interface{}, target interface{}, fields ...string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NestedField ¶
NestedField returns the unstructured map value
func NestedFieldAsInt ¶
func NestedFieldAsInt(obj map[string]interface{}, fields ...string) (intVal int, ok bool, err error)
NestedFieldAsInt returns the unstructured map value as int format
func NestedFieldAsString ¶
func NestedFieldAsString(obj map[string]interface{}, fields ...string) (strVal string, ok bool, err error)
NestedFieldAsString returns the unstructured map value as string format
func SetNestedField ¶
SetNestedField update or add a key-value field
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.