package init
import "github.com/open-policy-agent/opa/internal/runtime/init"
Package init is an internal package with helpers for data and policy loading during initialization.
Index ¶
Types ¶
type InsertAndCompileOptions ¶
type InsertAndCompileOptions struct { Store storage.Store Txn storage.Transaction Files loader.Result Bundles map[string]*bundle.Bundle MaxErrors int }
InsertAndCompileOptions contains the input for the operation.
type InsertAndCompileResult ¶
InsertAndCompileResult contains the output of the operation.
func InsertAndCompile ¶
func InsertAndCompile(ctx context.Context, opts InsertAndCompileOptions) (*InsertAndCompileResult, error)
InsertAndCompile writes data and policy into the store and returns a compiler for the store contents.
type LoadPathsResult ¶
LoadPathsResult contains the output loading a set of paths.
func LoadPaths ¶
LoadPaths reads data and policy from the given paths and returns a set of bundles or raw loader file results.
Source Files ¶
- Version
- v0.20.0
- Published
- May 21, 2020
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 1 hour ago –
Tools for package owners.