Documentation
¶
Overview ¶
Package compile implements bundles compilation and linking.
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. For newer features and behaviours, such as defaulting to the Rego v1 syntax, use the corresponding components in the github.com/open-policy-agent/opa/v1 package instead. See https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more information.
Index ¶
Constants ¶
View Source
const ( // TargetRego is the default target. The source rego is copied (potentially // rewritten for optimization purpsoes) into the bundle. The target supports // base documents. TargetRego = v1.TargetRego // TargetWasm is an alternative target that compiles the policy into a wasm // module instead of Rego. The target supports base documents. TargetWasm = v1.TargetWasm // TargetPlan is an altertive target that compiles the policy into an // imperative query plan that can be further transpiled or interpreted. TargetPlan = v1.TargetPlan )
Variables ¶
View Source
var Targets = v1.Targets
Targets contains the list of targets supported by the compiler.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.