Documentation
¶
Overview ¶
From https://github.com/redhat-developer/kam/tree/master/pkg/pipelines/yaml
Index ¶
- func MarshalItemToFile(fs afero.Fs, filename string, item interface{}) error
- func MarshalOutput(out io.Writer, output interface{}) error
- func UnMarshalItemFromFile(fs afero.Fs, filename string, item interface{}) error
- func WriteResources(fs afero.Fs, path string, files map[string]interface{}) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalItemToFile ¶
MarshalItemToFile marshals item to file
func MarshalOutput ¶
MarshalOutput marshal output to given writer
func UnMarshalItemFromFile ¶
UnMarshalItemFromFile unmarshals item from file
func WriteResources ¶
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.
Click to show internal directories.
Click to hide internal directories.