types

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL