utils

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadIndexerIfNeeded

func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager) (string, error)

func PrintViolationsTable

func PrintViolationsTable(violations []services.Violation) error

PrintViolationsTable prints the violations in 3 tables: security violations, license compliance violations and ignore rule URLs. In case one (or more) of the violations contains the field FailBuild set to true, CliError with exit code 3 will be returned.

func PrintVulnerabilitiesTable

func PrintVulnerabilitiesTable(vulnerabilities []services.Vulnerability)

func WriteJsonResults

func WriteJsonResults(results *services.ScanResponse, dirPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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