Documentation ¶
Index ¶
- func CustomConsoleWriter(fileLogger *zerolog.ConsoleWriter) zerolog.ConsoleWriter
- func FileAnalyzer(path string) (string, error)
- func GenerateReport(path, filename string, body interface{}, formats []string, ...) error
- func GetDefaultQueryPath(queriesPath string) (string, error)
- func GetExecutableDirectory() string
- func GetNumCPU() float32
- func InitShouldFailArg(args []string) error
- func InitShouldIgnoreArg(arg string) error
- func ListReportFormats() []string
- func RemediateExitCode(selectedRemediationNumber, actualRemediationDoneNumber int) int
- func ResultsExitCode(summary *model.Summary) int
- func ShowError(kind string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomConsoleWriter ¶
func CustomConsoleWriter(fileLogger *zerolog.ConsoleWriter) zerolog.ConsoleWriter
CustomConsoleWriter creates an output to print log in a files
func FileAnalyzer ¶ added in v1.1.4
FileAnalyzer determines the type of extension in the passed config file by its content
func GenerateReport ¶ added in v1.2.0
func GenerateReport(path, filename string, body interface{}, formats []string, proBarBuilder progress.PbBuilder) error
GenerateReport execute each report function to generate report
func GetDefaultQueryPath ¶ added in v1.2.4
GetDefaultQueryPath - returns the default query path
func GetExecutableDirectory ¶ added in v1.2.4
func GetExecutableDirectory() string
GetExecutableDirectory - returns the path to the directory containing KICS executable
func GetNumCPU ¶ added in v1.5.8
func GetNumCPU() float32
GetNumCPU return the number of cpus available
func InitShouldFailArg ¶ added in v1.3.0
InitShouldFailArg initializes which kind of vulnerability severity should changes exit code
func InitShouldIgnoreArg ¶ added in v1.3.0
InitShouldIgnoreArg initializes what kind of errors should be used on exit codes
func ListReportFormats ¶ added in v1.3.0
func ListReportFormats() []string
ListReportFormats return a slice with all supported report formats
func RemediateExitCode ¶ added in v1.5.12
RemediateExitCode calculate exit code base on the difference between remediation selected and done
func ResultsExitCode ¶ added in v1.3.0
ResultsExitCode calculate exit code base on severity of results, returns 0 if no results was reported
Types ¶
This section is empty.