rego

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FilePath       string
	PackageName    string
	ImportPackages []string
	Contents       string
	RuleNames      []string
	Comments       []string
}

File is a parsed Rego file.

func GetFiles added in v0.5.0

func GetFiles(path string) ([]File, error)

GetFiles gets all Rego files in the given path and its subdirectories.

func GetFilesWithRule added in v0.5.0

func GetFilesWithRule(path string, rule string) ([]File, error)

GetFilesWithRule gets all Rego files in the given path and its subdirectories that contain the specified rule.

func NewFile added in v0.5.0

func NewFile(filePath string, contents string) (File, error)

NewFile parses the rego and creates a File

Jump to

Keyboard shortcuts

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