Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsolidatedReport ¶
type ConsolidatedReport struct { SchemaVersion int `json:",omitempty"` ClusterName string Findings []Resource `json:",omitempty"` }
ConsolidatedReport represents a kubernetes scan report with consolidated findings
type JSONWriter ¶
func (JSONWriter) Write ¶
func (jw JSONWriter) Write(report Report) error
Write writes the results in JSON format
type Report ¶
type Report struct { SchemaVersion int `json:",omitempty"` ClusterName string Vulnerabilities []Resource `json:",omitempty"` Misconfigurations []Resource `json:",omitempty"` }
Report represents a kubernetes scan report
type Resource ¶
type Resource struct { Namespace string `json:",omitempty"` Kind string Name string // TODO(josedonizetti): should add metadata? per report? per Result? // Metadata Metadata `json:",omitempty"` Results types.Results `json:",omitempty"` Error string `json:",omitempty"` // original report Report types.Report `json:"-"` }
Resource represents a kubernetes resource report
type SummaryWriter ¶
func NewSummaryWriter ¶
func NewSummaryWriter(output io.Writer, requiredSevs []dbTypes.Severity) SummaryWriter
func (SummaryWriter) Write ¶
func (s SummaryWriter) Write(report Report) error
Write writes the results in a summarized table format
type TableWriter ¶
func (TableWriter) Write ¶
func (tw TableWriter) Write(report Report) error
Click to show internal directories.
Click to hide internal directories.