query

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// RegoName is a constant for "rego"
	RegoName = "rego"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Rego

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

Rego is a wrapper around the OPA rego library.

func (*Rego) Evaluate

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

Evaluate evaluates the policy against the input.

type RegoFactory

type RegoFactory struct{}

RegoFactory is a factory for creating Rego query objects.

func (*RegoFactory) Create

func (f *RegoFactory) Create(policy string) (policyquery.PolicyQuery, error)

Create creates a new Rego query object.

Jump to

Keyboard shortcuts

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