opa

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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