初步定义扫描报告格式,日后应该会拓展

This commit is contained in:
chenxinquan 2022-11-17 11:59:33 +08:00
parent 5a2d58afa9
commit 74aa48f01e
1 changed files with 53 additions and 1 deletions

View File

@ -28,4 +28,56 @@
package genmai
type ReportCommon map[string]interface {}
import (
"time"
)
type ReportContianer struct {
RCContainerID string
RCName string
RCImage string
RCType string
RCUUID string
}
type ReportPlatform struct {
RPName string
RPInstanceID string
}
type ReportKernel struct {
RKRelease string
RKVersion string
RKRebootRequired bool
}
type ReportCommon struct {
RCServerUUID string
RCServerName string
RCFamily string
RCRelease string
RCContainer string
/* */
RCExploredTimeAt time.Time
RCExploredMode string
RCExploredVersion string
RCExploredRevision string
RCExploredBy string
RCExploredVia string
RCExploredIPv4Addrs []string
RCExploredIPv6Addrs []string
/* */
RCReportedAt time.Time
RCReportedVersion string
RCReportedBy string
/* */
RCErrors string
RCWarnings string
RCExploredVulns string // TBD: type
RCReunningKernel ReportKernel
RCPackages string // TBD: type
RCSrcPackages string // TBD: type
RCOptional string // TBD: type
}