package
0.10.2
Repository: https://github.com/rite2nikhil/opa.git
Documentation: pkg.go.dev

# Functions

Compiler returns an argument that sets the Rego compiler.
Dump returns an argument that sets the writer to dump debugging information to.
Imports returns an argument that adds a Rego import to the query's context.
Input returns an argument that sets the Rego input document.
Instrument returns an argument that enables instrumentation for diagnosing performance issues.
Metrics returns an argument that sets the metrics collection.
Module returns an argument that adds a Rego module.
New returns a new Rego object.
Package returns an argument that sets the Rego package on the query's context.
ParsedImports returns an argument that adds Rego imports to the query's context.
ParsedInput returns an argument that set sthe Rego input document.
ParsedPackage returns an argument that sets the Rego package on the query's context.
ParsedQuery returns an argument that sets the Rego query.
ParsedUnknowns returns an argument that sets the values to treat as unknown during partial evaluation.
PartialNamespace returns an argument that sets the namespace to use for partial evaluation results.
PrintTrace is a helper fnuction to write a human-readable version of the trace to the writer w.
Query returns an argument that sets the Rego query.
Runtime returns an argument that sets the runtime data to provide to the evaluation engine.
Store returns an argument that sets the policy engine's data storage layer.
Trace returns an argument that enables tracing on r.
Tracer returns an argument that adds a query tracer to r.
Transaction returns an argument that sets the transaction to use for storage layer operations.
Unknowns returns an argument that sets the values to treat as unknown during partial evaluation.

# Structs

CompileResult represents sthe result of compiling a Rego query, zero or more Rego modules, and arbitrary contextual data into an executable.
ExpressionValue defines the value of an expression in a Rego query.
Location defines a position in a Rego query or module.
PartialQueries contains the queries and support modules produced by partial evaluation.
PartialResult represents the result of partial evaluation.
Rego constructs a query and can be evaluated to obtain results.
Result defines the output of Rego evaluation.

# Type aliases

Errors represents a collection of errors returned when evaluating Rego.
ResultSet represents a collection of output from Rego evaluation.
Vars represents a collection of variable bindings.