Help us shape the future of Go! Take the 2026 Go Developer Survey

opa

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const OPA = "opa"

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine is an OPA engine implementing PolicyEvaluator interface.

func (*Engine) Evaluate

func (oe *Engine) Evaluate(ctx context.Context, input map[string]interface{}) (bool, error)

Evaluate evaluates the policy with the given input.

type EngineFactory

type EngineFactory struct{}

EngineFactory is a factory for creating OPA engines.

func (*EngineFactory) Create

func (f *EngineFactory) Create(policy string, queryLanguage string) (policyengine.PolicyEngine, error)

Create creates a new OPA engine.

Jump to

Keyboard shortcuts

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