conversion

package
v2.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResMapToUnstructured

func ResMapToUnstructured(resMap resmap.ResMap) ([]*unstructured.Unstructured, error)

ResMapToUnstructured converts a ResMap to a slice of Unstructured objects.

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