Documentation
¶
Index ¶
Constants ¶
const ( SeverityCritical = "CRITICAL" SeverityHigh = "HIGH" SeverityMedium = "MEDIUM" SeverityLow = "LOW" SeverityNone = "NONE" // Kept for legacy reasons since starboard contains this severity level SeverityUnknown = "UNKNOWN" )
Adapted from severityNames in Trivy-db https://gitlab.com/gitlab-org/security-products/dependencies/trivy-db/-/blob/2bd1364579ec652f8f595c4a61595fd9575e8496/pkg/types/types.go#L35
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsolidatedReport ¶
type ConsolidatedReport struct {
Findings []Resource `json:"Findings"`
}
ConsolidatedReport Type referenced from Trivy https://gitlab.com/gitlab-org/security-products/dependencies/trivy/-/blob/v0.38.3/pkg/k8s/report/report.go?ref_type=tags#L51
type DetectedVulnerability ¶
type DetectedVulnerability struct { VulnerabilityID string `json:"VulnerabilityID"` PkgName string `json:"PkgName"` InstalledVersion string `json:"InstalledVersion"` FixedVersion string `json:"FixedVersion"` PrimaryURL string `json:"PrimaryURL"` // Embed vulnerability details Vulnerability }
DetectedVulnerability Type referenced from Trivy https://gitlab.com/gitlab-org/security-products/dependencies/trivy/-/blob/v0.38.3/pkg/types/vulnerability.go#L9
type Resource ¶
type Resource struct { Namespace string `json:"Namespace"` Kind string `json:"Kind"` Name string `json:"Name"` Results []Result `json:"Results"` }
Resource Type referenced from Trivy https://gitlab.com/gitlab-org/security-products/dependencies/trivy/-/blob/v0.38.3/pkg/k8s/report/report.go#L58
type Result ¶
type Result struct { Target string `json:"Target"` Class string `json:"Class"` Type string `json:"Type"` Vulnerabilities []DetectedVulnerability `json:"Vulnerabilities"` }
Result Type referenced from Trivy https://gitlab.com/gitlab-org/security-products/dependencies/trivy/-/blob/v0.38.3/pkg/types/report.go#L71
type Vulnerability ¶
type Vulnerability struct { Title string `json:"Title"` Description string `json:"Description"` Severity string `json:"Severity"` // Selected from VendorSeverity, depending on a scan target References []string `json:"References"` PublishedDate *time.Time `json:"PublishedDate"` // Take from NVD LastModifiedDate *time.Time `json:"LastModifiedDate"` // Take from NVD }
Vulnerability Type referenced from Trivy-db https://gitlab.com/gitlab-org/security-products/dependencies/trivy-db/-/blob/4bcdf1c414d0/pkg/types/types.go#L132 referenced by Trivy v0.38.3