File tree Expand file tree Collapse file tree 5 files changed +33
-10
lines changed Expand file tree Collapse file tree 5 files changed +33
-10
lines changed Original file line number Diff line number Diff line change 1- .idea
1+ .idea
2+ .DS_Store
Original file line number Diff line number Diff line change 11package entity
22
33type AssetDetail struct {
4- OS AssetOSDetail `json:"os"`
5- PackageInfos []AssetPackageDetails `json:"package_infos"`
6- Applications []AssetApplicationDetails `json:"applications"`
4+ OS AssetOSDetail `json:"os"`
5+ PackageInfos []AssetPackageDetails `json:"package_infos"`
76}
87
98type AssetOSDetail struct {
@@ -13,13 +12,8 @@ type AssetOSDetail struct {
1312}
1413
1514type AssetPackageDetails struct {
16- FilePath string `json:"file_path"`
17- Packages []AssetPackageDetail `json:"packages"`
18- }
19-
20- type AssetApplicationDetails struct {
2115 Type string `json:"type"`
22- FilePath string `json:"file_path,omitempty "`
16+ FilePath string `json:"file_path"`
2317 Packages []AssetPackageDetail `json:"packages"`
2418}
2519
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ type AlertDetail struct {
1010 SensitiveDockerHistoryDetail * SensitiveDockerHistoryDetail `json:"sensitive_docker_history_detail,omitempty"`
1111 HistoryDetail * HistoryDetail `json:"history_detail,omitempty"`
1212 AssetDetail * AssetDetail `json:"asset_detail,omitempty"`
13+ VulnDetail * VulnDetail `json:"vuln_detail,omitempty"`
1314 WebshellDetail * WebshellDetail `json:"webshell_detail,omitempty"`
1415 ImageBasicDetail * ImageBasicDetail `json:"image_basic_detail,omitempty"`
1516 ContainerBasicDetail * ContainerBasicDetail `json:"container_basic_detail,omitempty"`
Original file line number Diff line number Diff line change 1+ package entity
2+
3+ import "time"
4+
5+ type VulnDetail struct {
6+ ID string `json:"id"`
7+ Published time.Time `json:"published"`
8+ Aliases []string `json:"aliases"`
9+ Summary string `json:"summary"`
10+ Details string `json:"details"`
11+ References []References `json:"references"`
12+ Sources []Source `json:"sources"`
13+ }
14+
15+ type References struct {
16+ Type string `json:"type"`
17+ URL string `json:"url"`
18+ }
19+
20+ type Source struct {
21+ OS AssetOSDetail `json:"os"`
22+ Type string `json:"type"`
23+ FilePath string `json:"file_path"`
24+ Packages AssetPackageDetail `json:"packages"`
25+ }
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ func (e EventType) String() string {
3333 return "risk"
3434 case Invasion :
3535 return "invasion"
36+ case Info :
37+ return "info"
3638 default :
3739 return "unknown"
3840 }
You can’t perform that action at this time.
0 commit comments