convert

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectToObject

func ObjectToObject(from interface{}, to interface{}) error

ObjectToObject converts one object into another

func ObjectToYaml

func ObjectToYaml(obj runtime.Object) ([]byte, error)

ObjectToYaml returns the yaml of a runtime object

func StringToUnstructured

func StringToUnstructured(out string) (*unstructured.Unstructured, error)

StringToUnstructured expects a single object via string and parses it into an unstructured object

func StringToUnstructuredArray

func StringToUnstructuredArray(out string) ([]*unstructured.Unstructured, error)

StringToUnstructuredArray splits a YAML file into unstructured objects. Returns a list of all unstructured objects

Types

This section is empty.

Jump to

Keyboard shortcuts

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