// NestedFieldCopy returns a deep copy of the value of a nested field. // Returns false if the value is missing. // No error is returned for a nil field. // // Note: fields passed to this function are treated as keys within the passed // object; no array/slice syntax is supported. func NestedFieldCopy(obj map[string]interface{ … } // NestedFieldNoCopy returns a reference to a nested field. // Returns false if value is not found and an error if unable // to traverse obj. // // Note: fields passed to this function are treated as keys within the passed // object; no array/slice syntax is supported. func NestedFieldNoCopy(obj map[string]interface{ … } // NestedString returns the string value of a nested field. // Returns false if value is not found and an error if not a string. func NestedString(obj map[string]interface{ … } // NestedBool returns the bool value of a nested field. // Returns false if value is not found and an error if not a bool. func NestedBool(obj map[string]interface{ … } // NestedFloat64 returns the float64 value of a nested field. // Returns false if value is not found and an error if not a float64. func NestedFloat64(obj map[string]interface{ … } // NestedInt64 returns the int64 value of a nested field. // Returns false if value is not found and an error if not an int64. func NestedInt64(obj map[string]interface{ … } // NestedNumberAsFloat64 returns the float64 value of a nested field. If the field's value is a // float64, it is returned. If the field's value is an int64 that can be losslessly converted to // float64, it will be converted and returned. Returns false if value is not found and an error if // not a float64 or an int64 that can be accurately represented as a float64. func NestedNumberAsFloat64(obj map[string]interface{ … } // NestedStringSlice returns a copy of []string value of a nested field. // Returns false if value is not found and an error if not a []interface{} or contains non-string items in the slice. func NestedStringSlice(obj map[string]interface{ … } // NestedSlice returns a deep copy of []interface{} value of a nested field. // Returns false if value is not found and an error if not a []interface{}. func NestedSlice(obj map[string]interface{ … } // NestedStringMap returns a copy of map[string]string value of a nested field. // Returns false if value is not found and an error if not a map[string]interface{} or contains non-string values in the map. func NestedStringMap(obj map[string]interface{ … } // NestedMap returns a deep copy of map[string]interface{} value of a nested field. // Returns false if value is not found and an error if not a map[string]interface{}. func NestedMap(obj map[string]interface{ … } // nestedMapNoCopy returns a map[string]interface{} value of a nested field. // Returns false if value is not found and an error if not a map[string]interface{}. func nestedMapNoCopy(obj map[string]interface{ … } // SetNestedField sets the value of a nested field to a deep copy of the value provided. // Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. func SetNestedField(obj map[string]interface{ … } func setNestedFieldNoCopy(obj map[string]interface{ … } // SetNestedStringSlice sets the string slice value of a nested field. // Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. func SetNestedStringSlice(obj map[string]interface{ … } // SetNestedSlice sets the slice value of a nested field. // Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. func SetNestedSlice(obj map[string]interface{ … } // SetNestedStringMap sets the map[string]string value of a nested field. // Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. func SetNestedStringMap(obj map[string]interface{ … } // SetNestedMap sets the map[string]interface{} value of a nested field. // Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. func SetNestedMap(obj map[string]interface{ … } // RemoveNestedField removes the nested field from the obj. func RemoveNestedField(obj map[string]interface{ … } func getNestedString(obj map[string]interface{ … } func getNestedInt64Pointer(obj map[string]interface{ … } func jsonPath(fields []string) string { … } func extractOwnerReference(v map[string]interface{ … } var UnstructuredJSONScheme … type unstructuredJSONScheme … const unstructuredJSONSchemeIdentifier … func (s unstructuredJSONScheme) Decode(data []byte, _ *schema.GroupVersionKind, obj runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { … } func (s unstructuredJSONScheme) Encode(obj runtime.Object, w io.Writer) error { … } func (unstructuredJSONScheme) doEncode(obj runtime.Object, w io.Writer) error { … } // Identifier implements runtime.Encoder interface. func (unstructuredJSONScheme) Identifier() runtime.Identifier { … } func (s unstructuredJSONScheme) decode(data []byte) (runtime.Object, error) { … } func (s unstructuredJSONScheme) decodeInto(data []byte, obj runtime.Object) error { … } func (unstructuredJSONScheme) decodeToUnstructured(data []byte, unstruct *Unstructured) error { … } func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList) error { … } type jsonFallbackEncoder … func NewJSONFallbackEncoder(encoder runtime.Encoder) runtime.Encoder { … } func (c *jsonFallbackEncoder) Encode(obj runtime.Object, w io.Writer) error { … } // Identifier implements runtime.Encoder interface. func (c *jsonFallbackEncoder) Identifier() runtime.Identifier { … }