Versions in this module Expand all Collapse all v1 v1.6.1 Jun 29, 2026 v1.6.0 Jun 26, 2026 Changes in this version + func DefaultHTTPClient() *http.Client + func NeedsCELCompat(s string) bool + func ParseValidationEnvAllowlist(parts []string) map[string]struct + func RewriteCELCompat(input string) (string, error) + type EvalOptions struct + Debug bool + type EvalResult struct + Debug map[string]any + Value any + type Program = *compiledProgram + type Runtime struct + AllowedEnv map[string]struct{} + GCPTokenEndpoint string + STSEndpoint string + func New(httpClient *http.Client) (*Runtime, error) + func (e *Runtime) CompileFilter(expression string, tokenizer *tiktoken.Tiktoken) (Program, error) + func (e *Runtime) CompilePrefilter(expression string) (Program, error) + func (e *Runtime) CompileValidation(expression string) (Program, error) + func (e *Runtime) Eval(prg Program, finding, captures map[string]string) (any, error) + func (e *Runtime) EvalFilter(prg Program, finding, attributes map[string]string) (bool, error) + func (e *Runtime) EvalPrefilter(prg Program, attributes map[string]string) (bool, error) + func (e *Runtime) EvalValidation(ctx context.Context, prg Program, ...) (EvalResult, error) + func (e *Runtime) EvalWithAttributes(prg Program, finding, captures, attributes map[string]string) (any, error) + func (e *Runtime) EvalWithContext(ctx context.Context, prg Program, ...) (any, error) + func (e *Runtime) SetHTTPClient(c *http.Client) + func (e *Runtime) SetTokenizerProvider(provider func() *tiktoken.Tiktoken)