Versions in this module Expand all Collapse all v0 v0.0.3 Oct 22, 2024 Changes in this version + func BuildDebugInformation(exprResult ExpressionResult) (string, *structpb.Struct, error) + func MustCaveatExprForTestingWithContext(name string, context map[string]any) *core.CaveatExpression v0.0.2 Jun 3, 2024 Changes in this version + func And(first *core.CaveatExpression, second *core.CaveatExpression) *core.CaveatExpression + func CaveatAsExpr(caveat *core.ContextualizedCaveat) *core.CaveatExpression + func CaveatExprForTesting(name string) *core.CaveatExpression + func CaveatForTesting(name string) *core.ContextualizedCaveat + func Invert(ce *core.CaveatExpression) *core.CaveatExpression + func Or(first *core.CaveatExpression, second *core.CaveatExpression) *core.CaveatExpression + func ShortcircuitedOr(first *core.CaveatExpression, second *core.CaveatExpression) *core.CaveatExpression + func Subtract(caveat *core.CaveatExpression, subtracted *core.CaveatExpression) *core.CaveatExpression + type EvaluationErr struct + func NewEvaluationErr(caveatExpr *core.CaveatExpression, err caveats.EvaluationErr) EvaluationErr + func (err EvaluationErr) DetailsMetadata() map[string]string + func (err EvaluationErr) GRPCStatus() *status.Status + func (err EvaluationErr) MarshalZerologObject(e *zerolog.Event) + type ExpressionResult interface + ContextStruct func() (*structpb.Struct, error) + ContextValues func() map[string]any + ExpressionString func() (string, error) + IsPartial func() bool + MissingVarNames func() ([]string, error) + Value func() bool + func RunCaveatExpression(ctx context.Context, expr *core.CaveatExpression, context map[string]any, ...) (ExpressionResult, error) + type ParameterTypeError struct + func NewParameterTypeError(caveatExpr *core.CaveatExpression, err error) ParameterTypeError + func (err ParameterTypeError) DetailsMetadata() map[string]string + func (err ParameterTypeError) GRPCStatus() *status.Status + func (err ParameterTypeError) MarshalZerologObject(e *zerolog.Event) + type RunCaveatExpressionDebugOption int + const RunCaveatExpressionNoDebugging + const RunCaveatExpressionWithDebugInformation