package
1.3.0-envoy-1
Repository: https://github.com/open-policy-agent/opa-envoy-plugin.git
Documentation: pkg.go.dev

# Functions

Eval - Evaluates an input against a provided EvalContext and yields result.
NewEvalResult creates a new EvalResult and a StopFunc that is used to stop the timer for metrics.
RequestToInput - Converts a CheckRequest in either protobuf 2 or 3 to an input map.

# Structs

EvalResult - Captures the result from evaluating a query against an input.
PrepareQueryOpts - Options to prepare a Rego query to be passed to the CreatePreparedQueryOnce method.

# Interfaces

EvalContext - This is an SPI that has to be provided if the envoy external authorization is used from outside the plugin, i.e.

# Type aliases

StopFunc should be called as soon as the evaluation is finished.
TransactionCloser should be called to abort the transaction.