imageprinter

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVE

type CVE struct {
	Severity    string
	ID          string
	Package     string
	Version     string
	FixVersions []string
	FixedState  string
}

type ImageScanSummary

type ImageScanSummary struct {
	MapsSeverityToSummary map[string]*SeveritySummary
	CVEs                  []CVE
	PackageScores         map[string]*PackageScore // map of package name to package score
	Images                []string
}

type PackageScore

type PackageScore struct {
	Name                    string
	Version                 string
	Score                   int
	MapSeverityToCVEsNumber map[string]int
}

type SeveritySummary

type SeveritySummary struct {
	NumberOfCVEs        int
	NumberOfFixableCVEs int
}

type TablePrinter

type TablePrinter interface {
	PrintImageScanningTable(io.Writer, ImageScanSummary)
}

type TableWriter

type TableWriter struct {
}

func NewTableWriter

func NewTableWriter() *TableWriter

func (*TableWriter) PrintImageScanningTable

func (tw *TableWriter) PrintImageScanningTable(writer io.Writer, summary ImageScanSummary)

Jump to

Keyboard shortcuts

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