Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToTyped ¶
func ConvertToTyped(obj runtime.Unstructured, typedObj interface{}) error
ConvertToTyped converts an unstructured object to a typed object. Usage:
node := &corev1.Node{} ConvertToTyped(object, node)
func ConvertToUnstructured ¶
func ConvertToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
ConvertToUnstructured converts a typed object to an unstructured object.
func YAMLToUnstructured ¶ added in v0.5.0
func YAMLToUnstructured(content []byte) (*unstructured.Unstructured, error)
YAMLToUnstructured converts the object's YAML content into an unstructured object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.