Versions in this module Expand all Collapse all v1 v1.0.9 Mar 14, 2022 Changes in this version + var CVERx = regexp.MustCompile(`^CVE-([0-9]{4})-[0-9]{4,}$`) + var CVERxLoose = regexp.MustCompile(`CVE[^\w]*\d{4}[^\w]+\d{4,}`) + var CVERxStrict = regexp.MustCompile(`^CVE-\d{4}-(0\d{3}|[1-9]\d{3,})$`) + var ErrNotFound = errors.New("CVE not found") + func FixCVEID(cveID string) string + func IsCVEID(cveID string) bool + func IsCVEIDLoose(cveID string) bool + func IsCVEIDStrict(cveID string) bool + func PadCVESequence(seq int) string + func ParseCVEID(cveID string) (cveYear int, cveSequence int) + type CPEMatch struct + CPE23URI string + type CPEMatchFeed struct + CPEMatches []CPEMatch + type CVEItem struct + CVE struct{ ... } + Configurations struct{ ... } + Impact struct{ ... } + LastModifiedDate string + PublishedDate string + Reserved bool + func (cve *CVEItem) VendorsProducts() []Vendor + type Client struct + func NewClient(baseDir string) (cl *Client, err error) + func (c *Client) FetchCVE(cveID string) (CVEItem, error) + func (c *Client) FetchCWE() (cwes WeaknessCatalog, err error) + func (c *Client) FetchUpdatedCVEs() ([]CVEItem, error) + type NVDFeed struct + CVEDataFormat string + CVEDataNumberOfCVEs string + CVEDataTimestamp string + CVEDataType string + CVEDataVersion string + CVEItems []CVEItem + type NVDMeta struct + GzSize string + LastModifiedDate string + Sha256 string + Size string + ZipSize string + type Product struct + Name string + URIShort string + type Vendor struct + Name string + Products []Product + type Weakness struct + Description string + ID string + Name string + type WeaknessCatalog struct + Categories []WeaknessCategory + Weaknesses []Weakness + type WeaknessCategory struct + Description string + ID string + Name string