prettyprinter

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopPackagesNumber = 5 // number of top packages to display
)

Variables

This section is empty.

Functions

func ControlCountersForResource

func ControlCountersForResource(l *helpersv1.AllLists) string

Types

type ClusterPrinter

type ClusterPrinter struct {
	// contains filtered or unexported fields
}

func NewClusterPrinter

func NewClusterPrinter(writer *os.File) *ClusterPrinter

func (*ClusterPrinter) PrintConfigurationsScanning

func (cp *ClusterPrinter) PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string, topWorkloadsByScore []reporthandling.IResource)

func (*ClusterPrinter) PrintImageScanning

func (cp *ClusterPrinter) PrintImageScanning(summary *imageprinter.ImageScanSummary)

func (*ClusterPrinter) PrintNextSteps

func (cp *ClusterPrinter) PrintNextSteps()

type ImagePrinter

type ImagePrinter struct {
	// contains filtered or unexported fields
}

func NewImagePrinter

func NewImagePrinter(writer *os.File, verboseMode bool) *ImagePrinter

func (*ImagePrinter) PrintConfigurationsScanning

func (ip *ImagePrinter) PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string, topWorkloadsByScore []reporthandling.IResource)

func (*ImagePrinter) PrintImageScanning

func (ip *ImagePrinter) PrintImageScanning(summary *imageprinter.ImageScanSummary)

func (*ImagePrinter) PrintImageScanningTable

func (ip *ImagePrinter) PrintImageScanningTable(summary imageprinter.ImageScanSummary)

func (*ImagePrinter) PrintNextSteps

func (ip *ImagePrinter) PrintNextSteps()

type MainPrinter

type MainPrinter interface {
	PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControls [][]string, topWorkloadsByScore []reporthandling.IResource)
	PrintImageScanning(imageScanSummary *imageprinter.ImageScanSummary)
	PrintNextSteps()
}

type RepoPrinter

type RepoPrinter struct {
	// contains filtered or unexported fields
}

func NewRepoPrinter

func NewRepoPrinter(writer *os.File, inputPatterns []string) *RepoPrinter

func (*RepoPrinter) PrintConfigurationsScanning

func (rp *RepoPrinter) PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string, topWorkloadsByScore []reporthandling.IResource)

func (*RepoPrinter) PrintImageScanning

func (rp *RepoPrinter) PrintImageScanning(summary *imageprinter.ImageScanSummary)

func (*RepoPrinter) PrintNextSteps

func (rp *RepoPrinter) PrintNextSteps()

type SummaryPrinter

type SummaryPrinter struct {
	// contains filtered or unexported fields
}

func NewSummaryPrinter

func NewSummaryPrinter(writer *os.File, verboseMode bool) *SummaryPrinter

func (*SummaryPrinter) PrintConfigurationsScanning

func (sp *SummaryPrinter) PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string, topWorkloadsByScore []reporthandling.IResource)

func (*SummaryPrinter) PrintImageScanning

func (sp *SummaryPrinter) PrintImageScanning(*imageprinter.ImageScanSummary)

func (*SummaryPrinter) PrintNextSteps

func (sp *SummaryPrinter) PrintNextSteps()

type WorkloadPrinter

type WorkloadPrinter struct {
	// contains filtered or unexported fields
}

func NewWorkloadPrinter

func NewWorkloadPrinter(writer *os.File) *WorkloadPrinter

func (*WorkloadPrinter) PrintConfigurationsScanning

func (wp *WorkloadPrinter) PrintConfigurationsScanning(summaryDetails *reportsummary.SummaryDetails, sortedControlIDs [][]string, topWorkloadsByScore []reporthandling.IResource)

func (*WorkloadPrinter) PrintImageScanning

func (wp *WorkloadPrinter) PrintImageScanning(summary *imageprinter.ImageScanSummary)

func (*WorkloadPrinter) PrintNextSteps

func (wp *WorkloadPrinter) PrintNextSteps()

Directories

Path Synopsis
tableprinter

Jump to

Keyboard shortcuts

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