Versions in this module Expand all Collapse all v0 v0.2.0 Nov 4, 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 + RequestLimitHit *ValidationRequestLimitHit + Value any + type Program = *compiledProgram + type Runtime struct + AllowedEnv map[string]struct{} + AzureAppConfigEndpoint string + AzureServiceBusEndpoint string + AzureStorageEndpoint string + AzureTokenEndpoint string + 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 map[string]any, 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) EvalValidationWithComponents(ctx context.Context, prg Program, finding, captures map[string]string, ...) (EvalResult, error) + func (e *Runtime) EvalWithAttributes(prg Program, finding, captures, attributes map[string]string) (any, error) + func (e *Runtime) EvalWithComponents(prg Program, finding, captures map[string]string, components map[string]any) (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) + func (e *Runtime) SetValidationRequestLimits(cfg ValidationRequestLimits) error + type ValidationRequestLimitError struct + Hit ValidationRequestLimitHit + func (e *ValidationRequestLimitError) Error() string + type ValidationRequestLimitHit struct + MaxRequests int + RequestsSent int + RuleID string + Target string + type ValidationRequestLimits struct + MaxRequestsPerTarget int + RequestsPerSecond float64 + RequestsPerSecondByRule map[string]float64