parser

package
v0.30.25 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractComponentGKs added in v0.25.22

func ExtractComponentGKs(data []byte) (map[metav1.GroupKind]struct{}, map[string]string, error)

func ExtractComponentGVKs added in v0.25.22

func ExtractComponentGVKs(data []byte) (map[metav1.GroupVersionKind]struct{}, map[string]string, error)

func IsYAMLSyntaxError

func IsYAMLSyntaxError(err error) bool

func ProcessFS

func ProcessFS(fsys fs.FS, fn ResourceFn) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL