Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintJSONResults ¶
func PrintJSONResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
PrintJSONResults writes results to the provided writer in JSON format
func PrintTableResults ¶
func PrintTableResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer)
PrintTableResults prints the osv scan results into a human friendly table.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func NewReporter ¶
func NewVoidReporter ¶
func NewVoidReporter() *Reporter
NewVoidReporter creates a reporter that doesn't report to anywhere
func (*Reporter) PrintError ¶
PrintError writes the given message to stderr, regardless of if the reporter is outputting as JSON or not
func (*Reporter) PrintResult ¶
func (r *Reporter) PrintResult(vulnResult *models.VulnerabilityResults) error
Click to show internal directories.
Click to hide internal directories.