Documentation ¶
Index ¶
- Constants
- func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager) (string, error)
- func PrintLicensesTable(licenses []services.License, multipleRoots bool) error
- func PrintScanResults(results []services.ScanResponse, ...) (err error)
- func PrintViolationsTable(violations []services.Violation, multipleRoots bool) error
- func PrintVulnerabilitiesTable(vulnerabilities []services.Vulnerability, multipleRoots bool) error
Constants ¶
const (
GraphScanMinVersion = "3.29.0"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadIndexerIfNeeded ¶
func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager) (string, error)
func PrintLicensesTable ¶ added in v2.1.0
PrintLicensesTable prints the licenses in a table. Set multipleRoots to true in case the given licenses array contains (or may contain) results of several different projects or files (like in binary scan). In case multipleRoots is true, the field Component will show the root of each impact path, otherwise it will show the root's child.
func PrintScanResults ¶ added in v2.4.0
func PrintScanResults(results []services.ScanResponse, isTableFormat, includeVulnerabilities, includeLicenses, isMultipleRoots bool) (err error)
func PrintViolationsTable ¶
PrintViolationsTable prints the violations in 3 tables: security violations, license compliance violations and ignore rule URLs. Set multipleRoots to true in case the given violations array contains (or may contain) results of several different projects or files (like in binary scan). In case multipleRoots is true, the field Component will show the root of each impact path, otherwise it will show the root's child. 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, multipleRoots bool) error
PrintVulnerabilitiesTable prints the vulnerabilities in a table. Set multipleRoots to true in case the given vulnerabilities array contains (or may contain) results of several different projects or files (like in binary scan). In case multipleRoots is true, the field Component will show the root of each impact path, otherwise it will show the root's child.
Types ¶
This section is empty.