From 9c17b97cd0f83be3fff9fa4e87fd1d29052ea616 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 4 Feb 2022 00:35:31 -0500 Subject: rename to github.com/pablotron/cvez, remove internal libs --- internal/cpematch/cpematch.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 internal/cpematch/cpematch.go (limited to 'internal/cpematch/cpematch.go') diff --git a/internal/cpematch/cpematch.go b/internal/cpematch/cpematch.go deleted file mode 100644 index 0bae622..0000000 --- a/internal/cpematch/cpematch.go +++ /dev/null @@ -1,31 +0,0 @@ -// CPE match feed 1.0 parser. -// -// Latest CPE match feed available from here: -// https://nvd.nist.gov/vuln/data-feeds#cpeMatch -// -// JSON schema available here: -// https://csrc.nist.gov/schema/cpematch/feed/1.0/nvd_cpematch_feed_json_1.0.schema -package cpematch - -// CPE name -type Name struct { - Cpe22Uri string `json:"cpe22Uri"` - Cpe23Uri string `json:"cpe23Uri"` -} - -// CPE match string or range -type Match struct { - Vulnerable *bool `json:"vulnerable"` - Cpe22Uri string `json:"cpe22Uri"` - Cpe23Uri string `json:"cpe23Uri"` - VersionStartExcluding string `json:"versionStartExcluding"` - VersionStartIncluding string `json:"versionStartIncluding"` - VersionEndExcluding string `json:"versionEndExcluding"` - VersionEndIncluding string `json:"versionEndIncluding"` - Names []Name `json:"cpe_name"` // CPE match strings -} - -// CPE matches -type Matches struct { - Matches []Match `json:"matches"` // Array of CPE matches -} -- cgit v1.2.3