-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtypes.go
33 lines (30 loc) · 1.39 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
package summary
// SeverityType is Possible Types of Severities from Server
type SeverityType struct {
Low int `json:"low"`
Medium int `json:"medium"`
High int `json:"high"`
Critical int `json:"critical"`
}
// StackSummary is SA Result Summary output
type StackSummary struct {
TotalScannedDependencies int `json:"total_scanned_dependencies"`
TotalScannedTransitiveDependencies int `json:"total_scanned_transitives"`
TotalVulnerabilities int `json:"total_vulnerabilites"`
CommonlyKnownVulnerabilities int `json:"commonly_known_vulnerabilites"`
VulnerabilitiesUniqueToSynk int `json:"vulnerabilities_unique_to_synk"`
DirectVulnerableDependencies int `json:"direct_vulnerable_dependencies"`
LowVulnerabilities int `json:"low_vulnerabilities"`
MediumVulnerabilities int `json:"medium_vulnerabilities"`
HighVulnerabilities int `json:"high_vulnerabilities"`
CriticalVulnerabilities int `json:"critical_vulnerabilities"`
ReportLink string `json:"report_link"`
}
// ProcessVulnerabilities is arg type of processVulnerabilities
type ProcessVulnerabilities struct {
PublicVul int
PrivateVul int
DirectVulnerableDependencies int
TotalTransitives int
Severities SeverityType
}