Documentation ¶
Overview ¶
Package init is an internal package with helpers for data and policy loading during initialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleLoader ¶
type BundleLoader struct { DirectoryLoader bundle.DirectoryLoader IsDir bool }
BundleLoader contains information about files in a bundle
type Descriptor ¶
Descriptor contains information about a file
type InsertAndCompileOptions ¶
type InsertAndCompileOptions struct { Store storage.Store Txn storage.Transaction Files loader.Result Bundles map[string]*bundle.Bundle MaxErrors int EnablePrintStatements bool }
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.
type WalkPathsResult ¶
type WalkPathsResult struct { BundlesLoader []BundleLoader FileDescriptors []*Descriptor }
WalkPathsResult contains the output loading a set of paths.
Click to show internal directories.
Click to hide internal directories.