Documentation
¶
Index ¶
Constants ¶
View Source
const (
CompiledRegoHelpers = `` /* 270-byte string literal not displayed */
)
View Source
const (
Language = "rego"
)
const...
View Source
const (
SOME_I = "some.i"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompilerRego ¶
type CompilerRego struct {
// contains filtered or unexported fields
}
CompilerRego defines the compiler rego backend
func (*CompilerRego) Compile ¶
func (c *CompilerRego) Compile(pkgname string, pols *ast.Policies, swaggerTypes []types.Type) (string, error)
Compile converts the AST policies to a string
func (*CompilerRego) String ¶
func (c *CompilerRego) String() string
String satifies stringer interface
func (*CompilerRego) WithInputName ¶ added in v0.2.4
func (c *CompilerRego) WithInputName(name string) *CompilerRego
WithInputName sets the name of the generated OPA input document, default is "input"
type CompilerRegoOption ¶
type CompilerRegoOption func(c *CompilerRego)
CompilerRegoOption defines options
Click to show internal directories.
Click to hide internal directories.