opa

package
v0.0.0-...-47c2dae Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegoEngine

func NewRegoEngine(ctx context.Context) (arngin.Engine, error)

NewRegoEngine creates an instance of the RegoEngine. If the rules.rego file is not present, the initialisation of prepared query is deferred to LoadRules.

Types

type RegoEngine

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

RegoEngine implements the arngin.Engine interface using rego.

func (*RegoEngine) LoadRules

func (re *RegoEngine) LoadRules(ctx context.Context, rules []arngin.AddonRule) error

func (*RegoEngine) RunQuery

func (re *RegoEngine) RunQuery(ctx context.Context, q arngin.AddonsQ) ([]string, error)

Jump to

Keyboard shortcuts

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