Documentation ¶
Index ¶
- func ExtractComponents(data []byte) (map[metav1.GroupKind]struct{}, map[string]string, error)
- func IsYAMLSyntaxError(err error) bool
- func ProcessFS(fsys fs.FS, fn ResourceFn) error
- func ProcessPath(root string, fn ResourceFn) error
- func ProcessResources(data []byte, fn ResourceFn) error
- type ResourceFn
- type ResourceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractComponents ¶
func IsYAMLSyntaxError ¶
func ProcessPath ¶
func ProcessPath(root string, fn ResourceFn) error
func ProcessResources ¶
func ProcessResources(data []byte, fn ResourceFn) error
Types ¶
type ResourceFn ¶
type ResourceFn func(ri ResourceInfo) error
type ResourceInfo ¶
type ResourceInfo struct { Filename string Object *unstructured.Unstructured }
func ListFSResources ¶
func ListFSResources(fsys fs.FS) ([]ResourceInfo, error)
func ListPathResources ¶
func ListPathResources(root string) ([]ResourceInfo, error)
func ListResources ¶
func ListResources(data []byte) ([]ResourceInfo, error)
Click to show internal directories.
Click to hide internal directories.