Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "Rego"
Name is the name of the driver.
Variables ¶
View Source
var ( ErrBadType = errors.New("Could not recognize the type") ErrMissingField = errors.New("Rego source missing required field") )
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct { // Rego holds the main code for the constraint template. The `Violations` rule is the entry point. Rego string `json:"rego,omitempty"` // Libs holds supporting code for the main rego library. Modules can be imported from `data.libs`. Libs []string `json:"libs,omitempty"` }
func (*Source) ToUnstructured ¶
Click to show internal directories.
Click to hide internal directories.