cvetools

package
v5.0.0-preview.1+incom... Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CveTools

type CveTools struct {
	TbPath          string
	RtSock          string
	CveDBVersion    string
	CveDBCreateTime string
	UpdateMux       sync.RWMutex
	Update          updateData
	SupportOs       utils.Set
	ScanTool        *scan.ScanUtil
}

func NewCveTools

func NewCveTools(rtSock string, scanTool *scan.ScanUtil) *CveTools

NewCveTools establishs the initialization of cve tool

func (*CveTools) DetectAppVul

func (cv *CveTools) DetectAppVul(path string, apps []detectors.AppFeatureVersion, namespace string) []vulFullReport

func (*CveTools) ScanAppPackage

func (cv *CveTools) ScanAppPackage(req *share.ScanAppRequest, namespace string) (*share.ScanResult, error)

ScanAppPackage helps scanning application packages

func (*CveTools) ScanAwsLambda

func (cv *CveTools) ScanAwsLambda(req *share.ScanAwsLambdaRequest, imgPath string) (*share.ScanResult, error)

ScanAwsLambda helps the AWS Lambda scanning

func (*CveTools) ScanImage

func (cv *CveTools) ScanImage(ctx context.Context, req *share.ScanImageRequest, imgPath string) (*share.ScanResult, error)

ScanImage helps the Image scanning

func (*CveTools) ScanImageData

func (cv *CveTools) ScanImageData(data *share.ScanData) (*share.ScanResult, error)

ScanImageData helps scanning image data

type SortBy

type SortBy func(v1, v2 vulnerabilityInfo) bool

func (SortBy) Sort

func (by SortBy) Sort(vulnerabilities []vulnerabilityInfo)

Jump to

Keyboard shortcuts

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