Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YarnAuditReport ¶
type YarnAuditReport struct { AuditAdvisories []*auditAdvisoryData AuditActions []*auditActionData AuditSummary *auditSummaryData }
YarnAuditReport includes yarn audit data grouped by advisories, actions and summary.
func NewReport ¶
func NewReport(reportLines [][]byte) (*YarnAuditReport, []error)
NewReport returns a YarnAuditReport, assuming each line is jsonline and returns any errors.
func (*YarnAuditReport) AsIssues ¶
func (r *YarnAuditReport) AsIssues() []*v1.Issue
AsIssues returns the YarnAuditReport as Dracon v1.Issue list. Currently only converts the YarnAuditReport.AuditAdvisories.
Click to show internal directories.
Click to hide internal directories.