opa

package
v0.0.0-...-6c3584e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PolicyFileName = "example.rego"

PolicyFileName is the name of the file where the policy is defined.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Defined bool
	Query   elastic.Query
}

Result contains ES queries after partially evaluating OPA queries.

func Compile

func Compile(ctx context.Context, input map[string]interface{}, policy []byte) (Result, error)

Compile compiles OPA query and partially evaluates it.

Jump to

Keyboard shortcuts

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