mirror of https://gitee.com/openkylin/genmai.git
初步定义扫描报告格式,日后应该会拓展
This commit is contained in:
parent
5a2d58afa9
commit
74aa48f01e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue