Versions in this module Expand all Collapse all v1 v1.62.0 Dec 5, 2025 v1.61.1 Dec 4, 2025 Changes in this version + type Engine struct + func NewEngine(opts ...engine.Option) *Engine + func (e *Engine) MatchesEvaluation(_ context.Context, _ *engine.Policy, _ []string, _ map[string]string) (bool, error) + func (e *Engine) MatchesParameters(_ context.Context, _ *engine.Policy, _, _ map[string]string) (bool, error) + func (e *Engine) Verify(ctx context.Context, policy *engine.Policy, input []byte, args map[string]any) (*engine.EvaluationResult, error) + type ErrorCategory string + const CategoryHTTPForbidden + const CategoryMemory + const CategoryPanic + const CategoryTimeout + const CategoryUnknown + type PolicyError struct + Category ErrorCategory + Hint string + OriginalErr error + UserMessage string + func (e *PolicyError) Error() string