Documentation ¶
Index ¶
- func ControlCountersForSummary(counters reportsummary.ICounters) string
- func GenerateFooter(summaryDetails *reportsummary.SummaryDetails, short bool) []string
- func GenerateRow(controlSummary reportsummary.IControlSummary, ...) []string
- func GetColumnsAlignments() []int
- func GetComplianceScoreColumn(controlSummary reportsummary.IControlSummary, ...) string
- func GetControlTableHeaders(short bool) []string
- func GetInfoColumn(controlSummary reportsummary.IControlSummary, ...) string
- func GetSeverityColumn(controlSummary reportsummary.IControlSummary) string
- type CategoryControls
- type CategoryType
- type ClusterPrinter
- type FrameworkPrinter
- type RepoPrinter
- type TablePrinter
- type WorkloadPrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlCountersForSummary ¶
func ControlCountersForSummary(counters reportsummary.ICounters) string
func GenerateFooter ¶
func GenerateFooter(summaryDetails *reportsummary.SummaryDetails, short bool) []string
func GenerateRow ¶
func GenerateRow(controlSummary reportsummary.IControlSummary, infoToPrintInfo []utils.InfoStars, verbose bool) []string
func GetColumnsAlignments ¶
func GetColumnsAlignments() []int
func GetComplianceScoreColumn ¶
func GetComplianceScoreColumn(controlSummary reportsummary.IControlSummary, infoToPrintInfo []utils.InfoStars) string
func GetControlTableHeaders ¶
func GetInfoColumn ¶
func GetInfoColumn(controlSummary reportsummary.IControlSummary, infoToPrintInfo []utils.InfoStars) string
func GetSeverityColumn ¶
func GetSeverityColumn(controlSummary reportsummary.IControlSummary) string
Types ¶
type CategoryControls ¶
type CategoryControls struct { CategoryName string Status apis.ScanningStatus // contains filtered or unexported fields }
type CategoryType ¶
type CategoryType string
const ( TypeCounting CategoryType = "COUNTING" TypeStatus CategoryType = "STATUS" )
type ClusterPrinter ¶
type ClusterPrinter struct{}
func NewClusterPrinter ¶
func NewClusterPrinter() *ClusterPrinter
func (*ClusterPrinter) PrintCategoriesTables ¶
func (cp *ClusterPrinter) PrintCategoriesTables(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
func (*ClusterPrinter) PrintSummaryTable ¶
func (cp *ClusterPrinter) PrintSummaryTable(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
type FrameworkPrinter ¶
type FrameworkPrinter struct {
// contains filtered or unexported fields
}
func NewFrameworkPrinter ¶
func NewFrameworkPrinter(verboseMode bool) *FrameworkPrinter
func (*FrameworkPrinter) PrintCategoriesTables ¶
func (fp *FrameworkPrinter) PrintCategoriesTables(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
func (*FrameworkPrinter) PrintSummaryTable ¶
func (fp *FrameworkPrinter) PrintSummaryTable(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
type RepoPrinter ¶
type RepoPrinter struct {
// contains filtered or unexported fields
}
func NewRepoPrinter ¶
func NewRepoPrinter(inputPatterns []string) *RepoPrinter
func (*RepoPrinter) PrintCategoriesTables ¶
func (rp *RepoPrinter) PrintCategoriesTables(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
func (*RepoPrinter) PrintSummaryTable ¶
func (rp *RepoPrinter) PrintSummaryTable(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
type TablePrinter ¶
type TablePrinter interface { PrintCategoriesTables(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string) PrintSummaryTable(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string) }
type WorkloadPrinter ¶
type WorkloadPrinter struct { }
func NewWorkloadPrinter ¶
func NewWorkloadPrinter() *WorkloadPrinter
func (*WorkloadPrinter) PrintCategoriesTables ¶
func (wp *WorkloadPrinter) PrintCategoriesTables(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
func (*WorkloadPrinter) PrintSummaryTable ¶
func (wp *WorkloadPrinter) PrintSummaryTable(writer io.Writer, summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string)
Click to show internal directories.
Click to hide internal directories.