Versions in this module Expand all Collapse all v0 v0.1.1 Sep 20, 2025 v0.1.0 Sep 4, 2025 Changes in this version + func AsBinaryBoolList(d any) ([]bool, error) + func AsBinaryFloatList(d any) ([]float64, error) + func AsBinaryIntList(d any) ([]int64, error) + func AsBinaryIntOrFloatList(d any) ([]int64, []float64, reflect.Kind, error) + func AsBinaryStringList(d any) ([]string, error) + func AsBool(d any) (bool, error) + func AsBoolList(d any) ([]bool, error) + func AsFloat(d any) (float64, error) + func AsFloatList(d any) ([]float64, error) + func AsInt(d any) (int64, error) + func AsIntList(d any) ([]int64, error) + func AsIntOrFloat(d any) (int64, float64, reflect.Kind, error) + func AsIntOrFloatList(d any) ([]int64, []float64, reflect.Kind, error) + func AsList(d any) ([]any, error) + func AsMap(d any) (map[string]any, error) + func AsObject(d any) (map[string]any, error) + func AsObjectList(d any) ([]map[string]any, error) + func AsObjectOrObjectList(d any) ([]map[string]any, error) + func AsString(d any) (string, error) + func AsStringList(d any) ([]string, error) + func GetJSONPath(ctx EvalCtx, key string) (any, error) + func GetJSONPathRaw(query string, object any) (any, error) + func IsList(d any) bool + func MatchLabels(labelMap map[string]any, selectorMap map[string]any) (bool, error) + func SetJSONPath(ctx EvalCtx, key string, value, data any) error + func SetJSONPathRaw(key string, value, target any) error + func SetJSONPathRawExp(keyExp *Expression, value, data any) error + type ErrExpression = error + func NewExpressionError(e *Expression, err error) ErrExpression + type ErrInvalidArguments = error + func NewInvalidArgumentsError(content string) ErrInvalidArguments + type ErrUnmarshal = error + func NewUnmarshalError(kind, content string) ErrUnmarshal + type EvalCtx struct + Log logr.Logger + Object any + Subject any + type Expression struct + Arg *Expression + Literal any + Op string + func AsExpOrExpList(d any) ([]Expression, error) + func NewJSONPathGetExpression(key string) Expression + func NewJSONPathSetExpression(key string, value any) (Expression, error) + func NewLiteralExpression(value any) (Expression, error) + func (e *Expression) DeepCopyInto(out *Expression) + func (e *Expression) Evaluate(ctx EvalCtx) (any, error) + func (e *Expression) GetLiteralBool() (bool, error) + func (e *Expression) GetLiteralFloat() (float64, error) + func (e *Expression) GetLiteralInt() (int64, error) + func (e *Expression) GetLiteralList() ([]any, error) + func (e *Expression) GetLiteralMap() (map[string]any, error) + func (e *Expression) GetLiteralString() (string, error) + func (e *Expression) MarshalJSON() ([]byte, error) + func (e *Expression) String() string + func (e *Expression) UnmarshalJSON(b []byte) error