aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-01 23:58:41 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-01 23:58:41 -0500
commit525382422f16bbf7fc46da908e472360d77edabc (patch)
treee48da939f664cd46a2f9e431eb00fbacf288c3a7 /internal
parentce92ab3114dc8f5d9654dbfeecefb44049ea1a0c (diff)
downloadcvez-525382422f16bbf7fc46da908e472360d77edabc.tar.bz2
cvez-525382422f16bbf7fc46da908e472360d77edabc.zip
internal/feed: add notes about vector
Diffstat (limited to 'internal')
-rw-r--r--internal/feed/feed.go14
1 files changed, 11 insertions, 3 deletions
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"`