cveinfo

package
v1.3.8-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cveinfo ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanImage

func ScanImage(ctx *cli.Context) (report.Report, error)

func UpdateCVEDb

func UpdateCVEDb(dbDir string, log log.Logger) error

UpdateCVEDb ...

Types

type CveInfo

type CveInfo struct {
	Log                log.Logger
	CveTrivyController CveTrivyController
	StoreController    storage.StoreController
	LayoutUtils        *common.OciLayoutUtils
}

CveInfo ...

func GetCVEInfo

func GetCVEInfo(storeController storage.StoreController, log log.Logger) (*CveInfo, error)

func (CveInfo) GetImageListForCVE

func (cveinfo CveInfo) GetImageListForCVE(repo string, cvid string, imgStore storage.ImageStore,
	trivyCtx *TrivyCtx) ([]*string, error)

func (CveInfo) GetTrivyContext

func (cveinfo CveInfo) GetTrivyContext(image string) *TrivyCtx

type CveTrivyController

type CveTrivyController struct {
	DefaultCveConfig *TrivyCtx
	SubCveConfig     map[string]*TrivyCtx
}

type TrivyCtx

type TrivyCtx struct {
	Input string
	Ctx   *cli.Context
}

func NewTrivyContext

func NewTrivyContext(dir string) *TrivyCtx

NewTrivyContext set some trivy configuration value and return a context.

Jump to

Keyboard shortcuts

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