Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(reader io.Reader) ([]unstructured.Unstructured, error)
decode consumes the given reader and parses its contents as YAML.
func Parse ¶
func Parse(pathname string, recursive bool) ([]unstructured.Unstructured, error)
Parse parses YAML files into Unstructured objects.
It supports 5 cases today:
- pathname = path to a file --> parses that file.
- pathname = path to a directory, recursive = false --> parses all files in that directory.
- pathname = path to a directory, recursive = true --> parses all files in that directory and it's descendants
- pathname = url --> fetches the contents of that URL and parses them as YAML.
- pathname = combination of all previous cases, the string can contain multiple records (file, directory or url) separated by comma
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.