aboutsummaryrefslogtreecommitdiff
path: root/dbstore
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-03-16 06:52:49 -0400
committerPaul Duncan <pabs@pablotron.org>2022-03-16 06:52:49 -0400
commit9be9b6c9d3fda7f729c89091dd9a4631584fcb5e (patch)
tree6d021c9fe8d8eeb0edcb616181601335b5c2b1eb /dbstore
parent7d5c7a1c09c2d6f3ee05294360a3ab7a4b90f9cb (diff)
downloadcvez-9be9b6c9d3fda7f729c89091dd9a4631584fcb5e.tar.bz2
cvez-9be9b6c9d3fda7f729c89091dd9a4631584fcb5e.zip
add dbstore/cisasearchrow.go
Diffstat (limited to 'dbstore')
-rw-r--r--dbstore/cisasearchrow.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/dbstore/cisasearchrow.go b/dbstore/cisasearchrow.go
new file mode 100644
index 0000000..520a62e
--- /dev/null
+++ b/dbstore/cisasearchrow.go
@@ -0,0 +1,21 @@
+package dbstore
+
+import (
+ "github.com/pablotron/cvez/feed"
+ "github.com/pablotron/cvez/rfc3339"
+)
+
+// CisaSearch() result
+type CisaSearchRow struct {
+ Id int64 `json:"vuln_id"` // CISA vulnerability ID
+ CatId int64 `json:"cat_id"` // CISA catalog ID
+ CveId feed.CveId `json:"nvd_id"` // NVD CVE ID
+ Vendor string `json:"vendor"` // Vendor name
+ Product string `json:"product"` // Product name
+ Name string `json:"name"` // Vulnerability name
+ Description string `json:"description"` // Vulnerability description
+ AddedAt rfc3339.Date `json:"added_at"` // Date added to catalog
+ Action string `json:"action"` // Action required
+ DueAt rfc3339.Date `json:"due_at"` // Date due
+ Rank float32 `json:"rank"` // search result rank
+}