Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFilters ¶
func RunFilters(ctx context.Context, resourceList *framework.ResourceList, filters ...yaml.Filter) error
RunFilters executes the specified filters against the provided resources.
Types ¶
type FieldClearer ¶
type FieldClearer struct { FieldPaths []FieldPath // Predicate matches against the name of the field or key in the map. Predicate func(string) bool }
FieldClearer removes fields at the specified FieldPaths, that match the predicate.
type FieldPath ¶
type FieldPath []string
FieldPath specifies the address of a field.
func ParseFieldPath ¶
ParseFieldPath parses a string into a FieldPath. We may in future support jsonpath or similar, for now we simply support dot-separated field paths.
func ParseFieldPaths ¶
ParseFieldPaths parses string slice into a FieldPath slice. This simplifies error handling.
type Runnable ¶
type Runnable interface {
Run(ctx context.Context, resourceList *framework.ResourceList) error
}
Runnable defines the contract for transform objects.
type TransformFunc ¶
type TransformFunc func(ctx context.Context, resourceList *framework.ResourceList) error
TransformFunc defines the signature of a transformation function.
Click to show internal directories.
Click to hide internal directories.