-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
51 lines (41 loc) · 1.13 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package gobinsec
type Response struct {
ResultsPerPage int `json:"resultsPerPage"`
StartIndex int `json:"startIndex"`
TotalResults int `json:"totalResults"`
Result Result `json:"result"`
}
type Result struct {
Items []Item `json:"CVE_Items"`
}
type Item struct {
CVE CVE `json:"cve"`
Configurations Configurations `json:"configurations"`
}
type CVE struct {
Metadata Metadata `json:"CVE_data_meta"`
References Reference `json:"references"`
}
type Reference struct {
ReferenceData []ReferenceData `json:"reference_data"`
}
type ReferenceData struct {
URL string `json:"url"`
}
type Metadata struct {
ID string `json:"ID"`
}
type Configurations struct {
Nodes []Node `json:"nodes"`
}
type Node struct {
Operator string `json:"operator"`
Match []Match `json:"cpe_match"`
}
type Match struct {
Vulnerable bool `json:"vulnerable"`
VersionStartExcluding string `json:"versionStartExcluding"`
VersionStartIncluding string `json:"versionStartIncluding"`
VersionEndExcluding string `json:"versionEndExcluding"`
VersionEndIncluding string `json:"versionEndIncluding"`
}