unstructured

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL