Documentation ¶
Overview ¶
Package planner contains a query planner for Rego queries.
Index ¶
- type Planner
- func (p *Planner) Plan() (*ir.Policy, error)
- func (p *Planner) WithBuiltinDecls(decls map[string]*ast.Builtin) *Planner
- func (p *Planner) WithModules(modules []*ast.Module) *Planner
- func (p *Planner) WithQueries(queries []ast.Body) *Planner
- func (p *Planner) WithRewrittenVars(vs map[ast.Var]ast.Var) *Planner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
Planner implements a query planner for Rego queries.
func (*Planner) WithBuiltinDecls ¶ added in v0.15.1
WithBuiltinDecls tells the planner what built-in function may be available inside the execution environment.
func (*Planner) WithModules ¶ added in v0.11.0
WithModules sets the module set that contains query dependencies.
func (*Planner) WithQueries ¶
WithQueries sets the query set to generate a plan for.
Click to show internal directories.
Click to hide internal directories.