cmd

package
v0.0.0-...-308edb3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HazardLevelFile = "hazard_level.json"
	ProductFile     = "product.json"
	VendorFile      = "vendor.json"
	VulnTypeFile    = "vuln_type.json"

	MinYear  = 1988
	MinMonth = 1
	MaxMonth = 12

	IncrementalUpdate = "increment"
	AllUpdate         = "all"
	Specific          = "specific"
)
View Source
const (
	VulnListSchema    = "vuln-list"
	VulnDetailSchema  = "vuln-detail"
	HazardLevelSchema = "hazard-level"
	VendorSchema      = "vendor"
	ProductSchema     = "product"
	VulnTypeSchema    = "vuln-type"
)
View Source
const (
	QueryVulnList = "vuln"
	QueryVendor   = "vendor"
	QueryProduct  = "product"
	RetryNum      = 5
)
View Source
const (
	BoltDB = "boltdb"
)

Variables

View Source
var (
	Year     int
	Month    int
	Dir      string
	Restart  bool
	Complete bool
	Github   bool
)
View Source
var (
	ThisYear     = time.Now().Year()
	ThisMonth, _ = utils.FormatMonth(time.Now().Month())
)
View Source
var (
	Trivy    bool
	Database string
	CnnvdDir string
)
View Source
var (
	Keyword string
	Retry   int

	PageIndex   int
	PageSize    int
	HazardLevel string
	Product     string
	Vendor      string
)
View Source
var Type string

Functions

func Execute

func Execute()

func GetCnnvdVuln

func GetCnnvdVuln()

Types

This section is empty.

Jump to

Keyboard shortcuts

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