From 525382422f16bbf7fc46da908e472360d77edabc Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 1 Feb 2022 23:58:41 -0500 Subject: internal/feed: add notes about vector --- internal/feed/feed.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/feed') diff --git a/internal/feed/feed.go b/internal/feed/feed.go index bd66ed3..78a8161 100644 --- a/internal/feed/feed.go +++ b/internal/feed/feed.go @@ -1,6 +1,8 @@ package feed -// TODO: parse cpe, cve id +// import "nvd/internal/cvss" + +// TODO: parse cpe // CVE metadata type CveMetadata struct { @@ -121,9 +123,12 @@ type CvssV3 struct { // CVSS V3 version Version V3Version `json:"version"` - // CVSS V3 vector string (FIXME: add custom type) + // CVSS V3 vector string VectorString string `json:"vectorString"` + // CVSS vector (TODO) + // Vector cvss.Vector `json:"vectorString"` + // attack vector AttackVector V3AttackVector `json:"attackVector"` @@ -164,9 +169,12 @@ type CvssV2 struct { // CVSS V2 version Version V2Version `json:"version"` - // CVSS V3 vector string (FIXME: add custom type) + // CVSS vector string VectorString string `json:"vectorString"` + // CVSS vector (TODO) + // Vector cvss.Vector `json:"vectorString"` + // attack vector AccessVector V2AccessVector `json:"accessVector"` -- cgit v1.2.3