Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TrivyVersion = "v0.60.0"
TrivyVersion is the pinned version you want to install. Adjust as needed. Also consider how you'd verify checksums, etc.
Functions ¶
func InitializeTrivy ¶
func InitializeTrivy() error
Initialize ensures Trivy is installed (downloading if needed) and updates the local vulnerability database so scanning is current.
func IntializeTooling ¶
func IntializeTooling()
Types ¶
type TrivyResult ¶
type TrivyResult struct { Results []struct { Target string `json:"Target"` Class string `json:"Class"` Type string `json:"Type"` Vulnerabilities []struct { VulnerabilityID string `json:"VulnerabilityID"` PkgName string `json:"PkgName"` InstalledVersion string `json:"InstalledVersion"` FixedVersion string `json:"FixedVersion"` Severity string `json:"Severity"` Title string `json:"Title"` Description string `json:"Description"` } `json:"Vulnerabilities"` } `json:"Results"` }
TrivyResult helps unmarshal Trivy's JSON output. You can expand or trim fields depending on what you care about.
Click to show internal directories.
Click to hide internal directories.