engine

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCheckOptions added in v0.32.0

func ApplyCheckOptions(opts ...evaluator.CheckOpt) *evaluator.CheckOptions

Types

type Components added in v0.11.0

type Components struct {
	AuditLog          audit.Log
	PolicyLoader      policyloader.PolicyLoader
	RuleTableManager  *ruletable.Manager
	SchemaMgr         schema.Manager
	MetadataExtractor audit.MetadataExtractor
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, components Components) (*Engine, error)

func NewEphemeral

func NewEphemeral(conf *evaluator.Conf, rtMgr *ruletable.Manager, schemaMgr schema.Manager) *Engine

func NewFromConf added in v0.15.0

func NewFromConf(ctx context.Context, conf *evaluator.Conf, components Components) *Engine

func (*Engine) Check

func (engine *Engine) Check(ctx context.Context, inputs []*enginev1.CheckInput, opts ...evaluator.CheckOpt) ([]*enginev1.CheckOutput, error)

func (*Engine) Plan added in v0.47.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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