gather

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResourceGatherer

type ClusterResourceGatherer struct {
	// contains filtered or unexported fields
}

func NewClusterResourceGatherer

func NewClusterResourceGatherer(logger *slog.Logger) *ClusterResourceGatherer

func (*ClusterResourceGatherer) Gather

func (g *ClusterResourceGatherer) Gather(namespace string) ([]rulecontext.Object, error)

type ExclusionChecker

type ExclusionChecker interface {
	IsExcluded(path string) bool
}

type FileResourceGatherer

type FileResourceGatherer struct {
	// contains filtered or unexported fields
}

func NewFileResourceGatherer

func NewFileResourceGatherer(logger *slog.Logger, filePaths []string, matcher ExclusionChecker) *FileResourceGatherer

func (*FileResourceGatherer) Gather

func (fg *FileResourceGatherer) Gather(namespace string) ([]rulecontext.Object, error)

type InputType

type InputType int

type StdinResourceGatherer

type StdinResourceGatherer struct {
	// contains filtered or unexported fields
}

func NewStdinResourceGatherer

func NewStdinResourceGatherer(logger *slog.Logger) *StdinResourceGatherer

func (*StdinResourceGatherer) Gather

func (g *StdinResourceGatherer) Gather(namespace string) ([]rulecontext.Object, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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