yaml

package
v0.0.0-...-c48f5bf Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

From https://github.com/redhat-developer/kam/tree/master/pkg/pipelines/yaml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 UnMarshalItemFromFile

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

UnMarshalItemFromFile unmarshals item from file

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