From 9be9b6c9d3fda7f729c89091dd9a4631584fcb5e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 16 Mar 2022 06:52:49 -0400 Subject: add dbstore/cisasearchrow.go --- dbstore/cisasearchrow.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dbstore/cisasearchrow.go 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 +} -- cgit v1.2.3