Documentation
¶
Index ¶
- Variables
- func ExtractAnnotations(comments []*ast.Comment) map[string]interface{}
- func IsOCI(source string) bool
- func OnError(err error, callback func(err error))
- func PolicyCompiler(ctx context.Context, policyPath string) *ast.Compiler
- func SeededUUID(seedData []string) (uuid.UUID, error)
- func SubtractSlice(left []string, right []string) []string
- func Untar(destination string, tarReader io.Reader) error
- type Activity
- type Step
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var RequiredAnnotations = []string{
"title",
"description",
"controls",
}
Functions ¶
func ExtractAnnotations ¶
ExtractAnnotations takes comments from a rego file, and finds the metadata within. Metadata starts with a line `METADATA`, followed by a yaml document specifying the metadata for the specific policy. We use this to build a better picture of what the policy is used for, which controls it verifies, and who the responsible parties are.
func SubtractSlice ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.