-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package nvd | ||
|
||
type NVD struct { | ||
CVEItems []Item `json:"CVE_Items"` | ||
} | ||
|
||
type Item struct { | ||
Cve Cve | ||
Impact Impact | ||
} | ||
|
||
type Cve struct { | ||
Meta Meta `json:"CVE_data_meta"` | ||
References References | ||
Description Description | ||
} | ||
|
||
type Meta struct { | ||
ID string | ||
} | ||
|
||
type Impact struct { | ||
BaseMetricV2 BaseMetricV2 | ||
BaseMetricV3 BaseMetricV3 | ||
} | ||
|
||
type BaseMetricV2 struct { | ||
Severity string | ||
} | ||
|
||
type BaseMetricV3 struct { | ||
CvssV3 CvssV3 | ||
} | ||
|
||
type CvssV3 struct { | ||
BaseSeverity string | ||
} | ||
|
||
type References struct { | ||
ReferenceDataList []ReferenceData `json:"reference_data"` | ||
} | ||
type ReferenceData struct { | ||
Name string | ||
Refsource string | ||
URL string | ||
} | ||
|
||
type Description struct { | ||
DescriptionDataList []DescriptionData `json:"description_data"` | ||
} | ||
|
||
type DescriptionData struct { | ||
Lang string | ||
Value string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters