util

package
v0.0.0-...-03978f4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BMO_CONFIG_FILENAME = "bmo-config.yaml"
View Source
const CLUSTERCTL_CONFIG_FILENAME = "clusterctl-config.yaml"

Variables

This section is empty.

Functions

func FromUnstructured

func FromUnstructured(objs []unstructured.Unstructured) ([]byte, error)

FromUnstructured takes a list of Unstructured objects and converts it into a YAML

func GetRepositoryPath

func GetRepositoryPath(artifactsPath string) string

func JoinYaml

func JoinYaml(yamls ...[]byte) []byte

JoinYaml takes a list of YAML files and join them ensuring each YAML that the yaml separator goes on a new line by adding \n where necessary

func ToUnstructured

func ToUnstructured(rawyaml []byte) ([]unstructured.Unstructured, error)

ToUnstructured takes a YAML and converts it to a list of 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