cveinfo

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCveInfo added in v1.4.3

type BaseCveInfo struct {
	Log         log.Logger
	Scanner     Scanner
	LayoutUtils common.OciLayoutUtils
}

func NewCVEInfo added in v1.4.3

func NewCVEInfo(storeController storage.StoreController, log log.Logger) *BaseCveInfo

func (BaseCveInfo) GetCVEListForImage added in v1.4.3

func (cveinfo BaseCveInfo) GetCVEListForImage(image string) (map[string]cvemodel.CVE, error)

func (BaseCveInfo) GetCVESummaryForImage added in v1.4.3

func (cveinfo BaseCveInfo) GetCVESummaryForImage(image string) (ImageCVESummary, error)

func (BaseCveInfo) GetImageListForCVE added in v1.4.3

func (cveinfo BaseCveInfo) GetImageListForCVE(repo, cveID string) ([]ImageInfoByCVE, error)

func (BaseCveInfo) GetImageListWithCVEFixed added in v1.4.3

func (cveinfo BaseCveInfo) GetImageListWithCVEFixed(repo, cveID string) ([]common.TagInfo, error)

func (BaseCveInfo) UpdateDB added in v1.4.3

func (cveinfo BaseCveInfo) UpdateDB() error

type CveInfo

type CveInfo interface {
	GetImageListForCVE(repo, cveID string) ([]ImageInfoByCVE, error)
	GetImageListWithCVEFixed(repo, cveID string) ([]common.TagInfo, error)
	GetCVEListForImage(image string) (map[string]cvemodel.CVE, error)
	GetCVESummaryForImage(image string) (ImageCVESummary, error)
	UpdateDB() error
}

type ImageCVESummary added in v1.4.3

type ImageCVESummary struct {
	Count       int
	MaxSeverity string
}

type ImageInfoByCVE added in v1.4.2

type ImageInfoByCVE struct {
	Tag      string
	Digest   godigest.Digest
	Manifest ispec.Manifest
}

type Scanner added in v1.4.3

type Scanner interface {
	ScanImage(image string) (map[string]cvemodel.CVE, error)
	IsImageFormatScannable(image string) (bool, error)
	CompareSeverities(severity1, severity2 string) int
	UpdateDB() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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