Documentation ¶
Index ¶
- func Eval(exp string, input []byte) (bool, error)
- func EvalMap(exp string, input map[string]any) (bool, error)
- func EvalPB(exp []byte, key string, input *structpb.Struct) (bool, error)
- func Parse(expression, description string) (*ast.AST, error)
- func ToProto(a *ast.AST) (*expr.CheckedExpr, error)
- type EvalResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eval ¶
Eval evaluates the cel expression against the given input. input is expected to be a json string
Types ¶
type EvalResponse ¶
Click to show internal directories.
Click to hide internal directories.