Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Op ¶
Op is an operation that conditionally assigns a value to a path within an object. Designed to be sent over the wire as JSON.
func (*Op) Apply ¶
func (o *Op) Apply(ctx context.Context, current, mutated *unstructured.Unstructured) error
Apply applies the operation to the "mutated" object if the condition is met by the "current" object.
func (*Op) UnmarshalJSON ¶
type PathExpr ¶
type PathExpr struct {
// contains filtered or unexported fields
}
PathExpr represents an expression that can be used to access or modify values in a nested structure.
func ParsePathExpr ¶
ParsePathExpr parses a path expression string.
Supported syntax: - `field.anotherfield`: object field traversal - `field[2]`: array indexing - `field[*]`: array wildcards - `field[someKey="value"]`: object array field matchers
Expressions can be chained, e.g. `field.anotherfield[2].yetAnotherField`.
Click to show internal directories.
Click to hide internal directories.