patch

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchTarget

func MatchTarget(pattern, path string) (bool, error)

MatchTarget checks if a material path matches a target pattern. Supports exact paths and glob patterns.

Types

type Patch

type Patch interface {
	// Apply applies a single patch entry to matching materials and returns the patched materials.
	Apply(ctx context.Context, materials []domain.Material, patch v1alpha1.PatchEntry) ([]domain.Material, error)
}

Patch applies a single patch entry to generated materials.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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