builder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func New

func New() *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

func (*Builder) WithExcluded

func (b *Builder) WithExcluded(excluded []string) *Builder

func (*Builder) WithOutput

func (b *Builder) WithOutput(w io.Writer) *Builder

func (*Builder) WithSources

func (b *Builder) WithSources(srcs []*Source) *Builder

type Dir

type Dir struct {
	Path          string   // local fs path to source files
	Wipe          bool     // bit indicates if worker should delete directory before synchronization
	IncludedFiles []string // inclusion filter on files to load from path
	ExcludedFiles []string // exclusion filter on files to skip from path
}

type PackageConflictErr

type PackageConflictErr struct {
	Requirement *Source
	Package     *ast.Package
	// contains filtered or unexported fields
}

func (*PackageConflictErr) Error

func (err *PackageConflictErr) Error() string

type Source

type Source struct {
	Name         string
	Requirements []config.Requirement
	Transforms   []Transform
	// contains filtered or unexported fields
}

func NewSource

func NewSource(name string) *Source

func (*Source) AddDir

func (s *Source) AddDir(d Dir) error

func (*Source) AddFS

func (s *Source) AddFS(f fs.FS)

func (*Source) Equal

func (s *Source) Equal(other *Source) bool

func (*Source) Transform

func (s *Source) Transform(ctx context.Context) (*bytes.Buffer, error)

Transform applies Rego policies to data, replacing the original content with the transformed content.

func (*Source) Wipe

func (s *Source) Wipe() error

type Transform

type Transform struct {
	Query string
	Path  string
}

Jump to

Keyboard shortcuts

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