Documentation ¶
Index ¶
- func ExtractComponentGKs(data []byte) (map[metav1.GroupKind]struct{}, map[string]string, error)
- func ExtractComponentGVKs(data []byte) (map[metav1.GroupVersionKind]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 ExtractComponentGKs ¶ added in v0.25.22
func ExtractComponentGVKs ¶ added in v0.25.22
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.