aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}