Documentation ¶
Index ¶
Constants ¶
View Source
const ( ControlIDColumn = "ID" SeverityColumn = "Severity" ControlNameColumn = "Control Name" StatusColumn = "Status" IssuesColumn = "Issues" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComplianceReport ¶
type ComplianceReport struct { ID string Title string Description string Version string RelatedResources []string Results []*ControlCheckResult }
ComplianceReport represents a kubernetes scan report
func BuildComplianceReport ¶
func BuildComplianceReport(scanResults []types.Results, cs spec.ComplianceSpec) (*ComplianceReport, error)
type ControlCheckResult ¶
type ControlCheckSummary ¶
type JSONWriter ¶
func (JSONWriter) Write ¶
func (jw JSONWriter) Write(report *ComplianceReport) error
Write writes the results in JSON format
type SummaryReport ¶
type SummaryReport struct { SchemaVersion int `json:",omitempty"` ID string Title string SummaryControls []ControlCheckSummary `json:",omitempty"` }
SummaryReport represents a kubernetes scan report with consolidated findings
func BuildSummary ¶
func BuildSummary(cr *ComplianceReport) *SummaryReport
type SummaryWriter ¶
func NewSummaryWriter ¶
func NewSummaryWriter(output io.Writer) SummaryWriter
func (SummaryWriter) Write ¶
func (s SummaryWriter) Write(report *ComplianceReport) error
Write writes the results in a summarized table format
type TableWriter ¶
type TableWriter struct { Report string Output io.Writer Severities []dbTypes.Severity ColumnHeading []string }
func (TableWriter) Write ¶
func (tw TableWriter) Write(ctx context.Context, report *ComplianceReport) error
type Writer ¶
type Writer interface {
Write(ComplianceReport) error
}
Writer defines the result write operation
Click to show internal directories.
Click to hide internal directories.