Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(reader io.Reader) ([]*unstructured.Unstructured, error)
Decode reads a stream of YAML documents from the given reader and returns them as a slice of Unstructured objects.
func Read ¶
func Read(fsys fs.FS, pathname string) ([]*unstructured.Unstructured, error)
Read reads YAML files into Unstructured objects from the provided files system. It reads a single file or all files in a directory (and its subdirectories) based on the provided pathname.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.