Detect platform and get instance-id of amazon ec2

This commit is contained in:
kota kanbe
2016-06-06 22:35:38 +09:00
parent 259f23f6ee
commit e7ffc24844
3 changed files with 112 additions and 5 deletions

View File

@@ -82,6 +82,8 @@ type ScanResult struct {
Container Container
Platform Platform
// Fqdn string
// NWLinks []NWLink
KnownCves []CveInfo
@@ -322,3 +324,12 @@ type Container struct {
ContainerID string
Name string
}
// Platform has platform information
type Platform struct {
gorm.Model `json:"-"`
ScanResultID uint `json:"-"`
Name string // aws or azure or gcp or other...
InstanceID string
}