Versions in this module Expand all Collapse all v1 v1.154.0 Mar 28, 2022 v1.153.0 Mar 28, 2022 v1.152.0 Mar 28, 2022 Changes in this version + const ReportsDirectory + func CreateCustomReport(productName string, productID int, data map[string]int, vulns []Vuln) reporting.ScanReport + func HasFailed(result ResultData) bool + func HasSevereVulnerabilities(result Result, excludeCVEs string) bool + func WriteCustomReports(scanReport reporting.ScanReport, projectName, projectID string) ([]piperutils.Path, error) + func WriteReport(data ReportData, reportPath string, reportFileName string, ...) error + type Component struct + Vulns []Vulnerability + type Options struct + Duration time.Duration + Logger *logrus.Entry + Password string + ServerURL string + Username string + type Product struct + FileName string + ProductID int + type ProductData struct + Products []Product + type Protecode struct + func (pc *Protecode) DeclareFetchURL(cleanupMode, group, fetchURL, version string, productID int, ...) *ResultData + func (pc *Protecode) DeleteScan(cleanupMode string, productID int) + func (pc *Protecode) LoadExistingProduct(group string, fileName string) int + func (pc *Protecode) LoadReport(reportFileName string, productID int) *io.ReadCloser + func (pc *Protecode) ParseResultForInflux(result Result, excludeCVEs string) (map[string]int, []Vuln) + func (pc *Protecode) PollForResult(productID int, timeOutInMinutes string) ResultData + func (pc *Protecode) SetOptions(options Options) + func (pc *Protecode) UploadScanFile(cleanupMode, group, filePath, fileName, version string, productID int, ...) *ResultData + func (pc *Protecode) VerifyProductID(ProductID int) bool + type ReportData struct + Count string + Cvss2GreaterOrEqualSeven string + Cvss3GreaterOrEqualSeven string + ExcludeCVEs string + ExcludedVulnerabilities string + FailOnSevereVulnerabilities bool + HistoricalVulnerabilities string + Mandatory bool + ProductID string + ServerURL string + Target string + TriagedVulnerabilities string + Vulnerabilities []Vuln + type Result struct + Components []Component + ProductID int + ReportURL string + Status string + type ResultData struct + Result Result + type Triage struct + Codetype string + Component string + Description string + ID int + Modified string + Scope string + User User + Vendor string + Version string + VulnID string + type User struct + Email string + Girstname string + ID int + Lastname string + Username string + type Vuln struct + Cve string + Cvss float64 + Cvss3Score string + type Vulnerability struct + Exact bool + Triage []Triage + Vuln Vuln