aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/feed.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-02 01:32:05 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-02 01:32:05 -0500
commit153b1997de1b051de57d1b568bc0250e2888a38f (patch)
treec69b1f7fd710d72774abfa283612cea417817a5b /internal/feed/feed.go
parent7b1ca1c9c4304e8606399864563e6d1f877471de (diff)
downloadcvez-153b1997de1b051de57d1b568bc0250e2888a38f.tar.bz2
cvez-153b1997de1b051de57d1b568bc0250e2888a38f.zip
internal/feed: add vector and tests
Diffstat (limited to 'internal/feed/feed.go')
-rw-r--r--internal/feed/feed.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/feed/feed.go b/internal/feed/feed.go
index 7bca496..bdf260c 100644
--- a/internal/feed/feed.go
+++ b/internal/feed/feed.go
@@ -125,10 +125,10 @@ type CvssV3 struct {
Version V3Version `json:"version"`
// CVSS V3 vector string
- VectorString string `json:"vectorString"`
+ // VectorString string `json:"vectorString"`
- // CVSS vector (TODO)
- // Vector cvss.Vector `json:"vectorString"`
+ // CVSS vector
+ Vector Vector `json:"vectorString"`
// attack vector
AttackVector V3AttackVector `json:"attackVector"`
@@ -171,10 +171,10 @@ type CvssV2 struct {
Version V2Version `json:"version"`
// CVSS vector string
- VectorString string `json:"vectorString"`
+ // VectorString string `json:"vectorString"`
- // CVSS vector (TODO)
- // Vector cvss.Vector `json:"vectorString"`
+ // CVSS vector
+ Vector Vector `json:"vectorString"`
// attack vector
AccessVector V2AccessVector `json:"accessVector"`