yaml

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKustomize

func AddKustomize(fs afero.Fs, name string, items []string, path string) error

AddKustomize adds kustomization.yaml. Name and items become map key and value, respectively

func MarshalItemToFile

func MarshalItemToFile(fs afero.Fs, filename string, item interface{}) error

MarshalItemToFile marshals item to file

func MarshalOutput

func MarshalOutput(out io.Writer, output interface{}) error

MarshalOutput marshal output to given writer

func WriteResources

func WriteResources(fs afero.Fs, path string, files map[string]interface{}) ([]string, error)

WriteResources takes a prefix path, and a map of paths to values, and will marshal the values to the filenames as YAML resources, joining the prefix to the filenames before writing.

It returns the list of filenames written out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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