aboutsummaryrefslogtreecommitdiff
path: root/internal/feed
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed')
-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"`