Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinedOut ¶
CombinedOut represents the output of multiple Trivy runs (useful when using the Trivy Dracon tool to scan multiple images); the key is the name of the image file that was scanned.
type TrivyCVSS ¶
type TrivyCVSS struct {
Nvd TrivyNvd `json:"nvd"`
}
TrivyCVSS wraps Trivy CVSS info struct.
type TrivyOut ¶
type TrivyOut struct {
Results []TrivyResults `json:"Results"`
}
TrivyOut represents the output of a trivy run that we care about.
type TrivyPkgIdentifier ¶ added in v0.20.0
TrivyPkgIdentifier represents the package identifier in the trivy output.
type TrivyResults ¶
type TrivyResults struct { Vulnerable []*TrivyVulnerability `json:"Vulnerabilities"` Target string Type string }
TrivyResults is a single result/finding.
type TrivyVulnerability ¶
type TrivyVulnerability struct { CVE string `json:"VulnerabilityID"` PkgName string `json:"PkgName"` InstalledVersion string `json:"InstalledVersion"` FixedVersion string `json:"FixedVersion"` PrimaryURL string `json:"PrimaryURL"` Title string `json:"Title"` Description string `json:"Description"` Severity string `json:"Severity"` CweIDs []string `json:"CweIds"` CVSS TrivyCVSS `json:"CVSS"` PkgIdentifier TrivyPkgIdentifier `json:"PkgIdentifier"` }
TrivyVulnerability represents a trivy vulnerability section with only the fields that we care about.
Click to show internal directories.
Click to hide internal directories.