convert

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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 added in v0.0.2

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

ObjectToObject converts one object into another

func ObjectToYaml added in v0.1.0

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

ObjectToYaml returns the yaml of a runtime object

func StringToUnstructured added in v0.0.2

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

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

func StringToUnstructuredArray added in v0.0.2

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