internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequiredAnnotations = []string{
	"title",
	"description",
	"controls",
}

Functions

func Download added in v0.1.3

func Download(ctx context.Context, source string, outputDir string, binaryPath string, logger hclog.Logger, option ...remote.Option) (string, error)

func ExtractAnnotations

func ExtractAnnotations(comments []*ast.Comment) map[string]interface{}

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 IsOCI

func IsOCI(source string) bool

func OnError

func OnError(err error, callback func(err error))

func PolicyCompiler

func PolicyCompiler(ctx context.Context, policyPath string) *ast.Compiler

func SeededUUID

func SeededUUID(seedData []string) (uuid.UUID, error)

func SubtractSlice

func SubtractSlice(left []string, right []string) []string

func Untar

func Untar(destination string, tarReader io.Reader) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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