compiler_rego

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Language = "rego"
)

const...

Variables

This section is empty.

Functions

func New

func New() (compiler.Compiler, error)

New creates a new compiler

Types

type CompilerRego

type CompilerRego struct{}

CompilerRego defines the compiler rego backend

func (*CompilerRego) Compile

func (c *CompilerRego) Compile(pkgname string, pols *ast.Policies) (string, error)

Compile converts the AST policies to a string

func (*CompilerRego) String

func (c *CompilerRego) String() string

String satifies stringer interface

type CompilerRegoOption

type CompilerRegoOption func(c *CompilerRego)

CompilerRegoOption defines options

Jump to

Keyboard shortcuts

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