options

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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