vul

package
v0.32.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Sev1 tracks Critical sev.
	Sev1 = "SEV-1"

	// Sev2 tracks High sev.
	Sev2 = "SEV-2"

	// Sev3 tracks Medium sev.
	Sev3 = "SEV-3"

	// Sev4 tracks Low sev.
	Sev4 = "SEV-4"

	// Sev5 tracks Negligible sev.
	Sev5 = "SEV-5"

	// SevU tracks Unknown sev.
	SevU = "SEV-U"
)

Variables

View Source
var ImgScanner *imageScanner

Functions

func NewImageScanner

func NewImageScanner(cfg config.ImageScans) *imageScanner

NewImageScanner returns a new instance.

Types

type Row

type Row []string

func (Row) Fix

func (r Row) Fix() string

func (Row) Name

func (r Row) Name() string

func (Row) Severity

func (r Row) Severity() string

func (Row) Type

func (r Row) Type() string

func (Row) Version

func (r Row) Version() string

func (Row) Vulnerability

func (r Row) Vulnerability() string

type Scan

type Scan struct {
	ID    string
	Table *table
	Tally tally
}

Scan tracks image vulnerability scan.

func (*Scan) Dump

func (s *Scan) Dump(w io.Writer)

Dump dump report to stdout.

type Scans

type Scans map[string]*Scan

Scans tracks scans per image.

func (Scans) Dump

func (s Scans) Dump(w io.Writer)

Dump dump reports to stdout.

Jump to

Keyboard shortcuts

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