Documentation ¶
Overview ¶
Package report renders Lava reports in different formats using the results returned by the Vulcan checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitCode ¶
type ExitCode int
ExitCode represents an exit code depending on the vulnerabilities found.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer represents a Lava report writer.
func NewWriter ¶
func NewWriter(cfg config.ReportConfig) (Writer, error)
NewWriter creates a new instance of a report writer.
func (Writer) Write ¶
Write renders the provided engine.Report. The returned exit code is calculated by evaluating the report with the config.ReportConfig passed to NewWriter. If the returned error is not nil, the exit code will be zero and should be ignored.
Click to show internal directories.
Click to hide internal directories.