Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTestResult ¶
func GenerateTestResult(path string, untested *untestedComponents, issues *issuesComponent, sum *summary) (testResult, error)
GenerateSummary constructs a summary and generates it's string representation intended for human readable output.
Function returns an error if generation of string representation fails.
func Render ¶
func Render(dst io.Writer, p *Presentation) (int, error)
Render will combine and _mutate_ data to construct view with issues sorted using this precedence: severity, vulnerability reference, first package in introducedBy. The string result will be written to dst as a bytes.
Notice: This function may alter incoming data, such as the order of elements in the issues parameter.
Types ¶
type IntroducedBy ¶
type OpenIssue ¶
type OpenIssue struct { Severity severities.Level Description string IntroducedBy []IntroducedBy SnykRef string }
type Presentation ¶
Click to show internal directories.
Click to hide internal directories.