configurationprinter

package
v2.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 GetControlTableHeaders(short bool) []string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL