Documentation ¶
Index ¶
- Variables
- func DetectedVulnerabilitiesTable(vulns []types.DetectedVulnerability) (*table.Table, error)
- type Report
- func (r *Report) ByLibraryHistogramSets() (*histogram.HistogramSets, error)
- func (r *Report) BySeverityHistogramSet() (*histogram.HistogramSet, error)
- func (r *Report) ByYearHistogramSets() (*histogram.HistogramSets, error)
- func (r *Report) ResultsCount() int
- func (r *Report) SeverityCounts() map[string]uint
- func (r *Report) TableSet(addDates bool) (*table.TableSet, error)
- func (r *Report) VulnerabiliesTable(addDates bool) (*table.Table, error)
- func (r *Report) VulnerabilityCount() int
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReportNotLoaded = errors.New("report not loaded")
Functions ¶
func DetectedVulnerabilitiesTable ¶
func DetectedVulnerabilitiesTable(vulns []types.DetectedVulnerability) (*table.Table, error)
Types ¶
type Report ¶
Report is an extended struct for `github.com/aquasecurity/trivy/pkg/types.Report`.
func (*Report) ByLibraryHistogramSets ¶ added in v0.3.0
func (r *Report) ByLibraryHistogramSets() (*histogram.HistogramSets, error)
func (*Report) BySeverityHistogramSet ¶ added in v0.4.0
func (r *Report) BySeverityHistogramSet() (*histogram.HistogramSet, error)
func (*Report) ByYearHistogramSets ¶ added in v0.4.0
func (r *Report) ByYearHistogramSets() (*histogram.HistogramSets, error)
func (*Report) ResultsCount ¶
func (*Report) SeverityCounts ¶
SeverityCounts returns the number of vulnerabiltiies detected by severity.
func (*Report) VulnerabiliesTable ¶
VulnerabiliesTable returns a table of vulnerabilities with a column for result set. It is formatted with Markdown links which can be rendered in XLSX using `github.com/grokify/gocharts/data/table`.
func (*Report) VulnerabilityCount ¶
Click to show internal directories.
Click to hide internal directories.