options

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = EvaluatorOptions{
	LoadDefaultPlugins: true,
	ParallelWorkers:    4,
}

Functions

This section is empty.

Types

type EvaluatorOptions

type EvaluatorOptions struct {
	LoadDefaultPlugins bool
	ParallelWorkers    int8

	// SkipUnsupportedRuntime makes the evaluator factory soft-fail (skip) tenets
	// whose policy declares a runtime engine version or plugins that this binary
	// does not provide, instead of failing them. This lets a policy set combine
	// policies that rely on newer engine features with older engines that skip
	// them rather than reporting a hard failure. The default (false) preserves
	// the failing behavior.
	SkipUnsupportedRuntime bool
}

EvaluatorOptions are assembled by the verifier and passed deep to the evaluator when executing the policy tenets.

type OptFunc

type OptFunc func(*EvaluatorOptions) error

func WithDefaultPlugins

func WithDefaultPlugins(sino bool) OptFunc

Jump to

Keyboard shortcuts

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