About
August 17, 2023 ยท View on GitHub
Rego compiler which uses interop wrapper for subset
of OPA SDK for policy bundle compilation and packaging.
Note. Due to inclusion of native dependencies, nuget OpaDotNet.Compilation.Interop package is ~15MB.
Versions
| Version | OPA SDK Version | Platforms |
|---|---|---|
| v1.0.X | v0.55.0 | linux-x64 win-x64 |
Example
using OpaDotNet.Compilation.Interop;
var compiler = new RegoInteropCompiler();
var bundleStream = await compiler.CompileFile("example.rego", new[] { "example/hello" });
// Use compiled policy bundle.
...