scanner

package
v0.0.0-...-dfb9bea Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BK = color.New(color.FgBlack).SprintFunc()
	WH = color.New(color.FgWhite).SprintFunc()
	GR = color.New(color.FgGreen).SprintFunc()
	YE = color.New(color.FgYellow).SprintFunc()
	BL = color.New(color.FgBlue).SprintFunc()
	MA = color.New(color.FgMagenta).SprintFunc()
	CY = color.New(color.FgCyan).SprintFunc()
)

Functions

func CmdRun

func CmdRun()

func ParseDistro

func ParseDistro(distro string) (linux.Release, error)

Types

type Grype

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

func New

func New(minSeverity string, onlyFixed bool) (Grype, error)

func (*Grype) Close

func (s *Grype) Close()

func (*Grype) ScanItem

func (s *Grype) ScanItem(item string, dist linux.Release) ([]Vulnerability, error)

type Vulnerability

type Vulnerability struct {
	PURL      string
	ID        string
	Severity  string
	Package   string
	Type      string
	Version   string
	FixState  string
	FixedIn   []string
	Namespace string
	URLs      []string
}

Jump to

Keyboard shortcuts

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