Documentation ¶
Overview ¶
Package jq provides the jq profile evaluator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator is an Evaluator that uses the jq library to evaluate rules
func NewJQEvaluator ¶
func NewJQEvaluator( assertions []*pb.RuleType_Definition_Eval_JQComparison, opts ...eoptions.Option, ) (*Evaluator, error)
NewJQEvaluator creates a new JQ rule data evaluator
func (*Evaluator) Eval ¶
func (jqe *Evaluator) Eval(ctx context.Context, pol map[string]any, _ protoreflect.ProtoMessage, res *interfaces.Result) error
Eval calls the jq library to evaluate the rule
Click to show internal directories.
Click to hide internal directories.