common

package
v0.0.0-...-8fb2b90 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InputFilePath          string
	InputPolicyFilePath    string
	InputExceptionFilePath string
	WorkDirectory          string
	PolicyList             []string
	ExceptionList          []string
	RegoDefault            []byte
	RegoSGFailSeverity     []byte
	RegoPolicyDir          embed.FS
)
View Source
var (
	SGPFailSeverityTemp  string
	SemGrepExceptionTemp string
)

Functions

func GetJSONFileContent

func GetJSONFileContent(filePath string) (byteData []byte, err error)

func RegoPolicyFiles

func RegoPolicyFiles()

func SaveToJSONFile

func SaveToJSONFile(filePath string, content []byte) error

func SetupDirectory

func SetupDirectory()

Types

This section is empty.

Jump to

Keyboard shortcuts

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