planner

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package planner contains a query planner for Rego queries.

Index

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 New

func New() *Planner

New returns a new Planner object.

func (*Planner) Plan

func (p *Planner) Plan() (*ir.Policy, error)

Plan returns a IR plan for the policy query.

func (*Planner) WithQueries

func (p *Planner) WithQueries(queries []ast.Body) *Planner

WithQueries sets the query set to generate a plan for.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL