Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegoMeta ¶
type RegoMeta struct {
PackageName string // Optional package name
Imports map[Import]struct{} // Imports (without aliases)
Id string
Title string
Description string
Severity string
Controls map[string][]string
ResourceType string // Resource type
InputType string // Input type
// contains filtered or unexported fields
}
Utility to modify metadata of rego files.
You can load this using `RegoMetaFromPath` or `RegoMetaFromString`.
Then, you read and/or modify the public fields of this structure. When you're done, you can turn it into a string again using `String()` and pass it to OPA or write it to disk.
func RegoMetaFromPath ¶
func RegoMetaFromString ¶
Click to show internal directories.
Click to hide internal directories.