jq

package
v0.0.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 *engif.Result) error

Eval calls the jq library to evaluate the rule

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL