conversion

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceToUnstructured added in v2.16.0

func ResourceToUnstructured(res *resource.Resource) (*unstructured.Unstructured, error)

ResourceToUnstructured converts a resource.Resource to an Unstructured object.

func StrToUnstructured

func StrToUnstructured(resources string) ([]*unstructured.Unstructured, error)

StrToUnstructured converts a string containing multiple resources in YAML format to a slice of Unstructured objects. The input string is split by "---" separator and each part is unmarshalled 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