opa

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpaQueryAndModule

type OpaQueryAndModule struct {
	Filename string
	Query    string
}

type OpaRuleSet

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

func CreateOpaRuleSet

func CreateOpaRuleSet(rules []OpaQueryAndModule, ctx context.Context) ([]*OpaRuleSet, error)

func (*OpaRuleSet) Eval

func (r *OpaRuleSet) Eval(ctx context.Context, job *api.Job) (rego.ResultSet, error)

func (*OpaRuleSet) Name

func (r *OpaRuleSet) Name() string

Jump to

Keyboard shortcuts

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