# Functions
CompilePartial defines an option to control whether partial evaluation is run before the query is planned and compiled.
Compiler returns an argument that sets the Rego compiler.
Dump returns an argument that sets the writer to dump debugging information to.
EvalInput configures the input for a Prepared Query's evaluation.
EvalInstrument enables or disables instrumenting for a Prepared Query's evaluation.
EvalMetrics configures the metrics for a Prepared Query's evaluation.
EvalParsedInput configures the input for a Prepared Query's evaluation.
EvalParsedUnknowns returns an argument that sets the values to treat as unknown during partial evaluation.
EvalPartialNamespace returns an argument that sets the namespace to use for partial evaluation results.
EvalTracer configures a tracer for a Prepared Query's evaluation.
EvalTransaction configures the Transaction for a Prepared Query's evaluation.
EvalUnknowns returns an argument that sets the values to treat as unknown during partial evaluation.
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 sets the 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 function 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.
WithPartialEval configures an option for PrepareForEval which will have it perform partial evaluation while preparing the query (similar to rego.Rego#PartialResult).
# Structs
CompileContext contains options for Compile calls.
CompileResult represents the result of compiling a Rego query, zero or more Rego modules, and arbitrary contextual data into an executable.
EvalContext defines the set of options allowed to be set at evaluation time.
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.
PrepareConfig holds settings to control the behavior of the Prepare call.
PreparedEvalQuery holds the prepared Rego state that has been pre-processed for subsequent evaluations.
PreparedPartialQuery holds the prepared Rego state that has been pre-processed for partial evaluations.
Rego constructs a query and can be evaluated to obtain results.
Result defines the output of Rego evaluation.
# Type aliases
CompileOption defines a function to set options on Compile calls.
Errors represents a collection of errors returned when evaluating Rego.
EvalOption defines a function to set an option on an EvalConfig.
PrepareOption defines a function to set an option to control the behavior of the Prepare call.
ResultSet represents a collection of output from Rego evaluation.
Vars represents a collection of variable bindings.