mirror of https://gitee.com/openkylin/genmai.git
!109 编写src/genmai/ReportDBus.go
Merge pull request !109 from a-alpha/alpha-dev
This commit is contained in:
commit
f8098e94d9
|
@ -0,0 +1,75 @@
|
|||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Filename: ReportDBus.go
|
||||
//
|
||||
// Version: 1.0
|
||||
// Created: 2022年11月17日 15时23分56秒
|
||||
// Revision: none
|
||||
// Compiler: go
|
||||
//
|
||||
// Author: alpha
|
||||
// Organization: alpha
|
||||
// Contacts: chenxinquan@kylinos.com
|
||||
//
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Log:
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Todo:
|
||||
//
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
package genmai
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type ReportDBus struct {
|
||||
ReportCommon
|
||||
}
|
||||
|
||||
func GetADefaultReportDBus() ReportDBus {
|
||||
return ReportDBus{
|
||||
ReportCommon {
|
||||
RCServerUUID: "1234-5678-1234-5678",
|
||||
RCServerName: "aServer",
|
||||
RCFamily: "RCFamily",
|
||||
RCRelease: "RCRelease",
|
||||
RCContainer: "RCContainer",
|
||||
/* */
|
||||
RCExploredTimeAt: time.Now(),
|
||||
RCExploredMode: "RCExploredMode",
|
||||
RCExploredVersion: "RCExploredVersion",
|
||||
RCExploredRevision: "RCExploredRevision",
|
||||
RCExploredBy: "RCExploredBy",
|
||||
RCExploredVia: "RCExploredVia",
|
||||
//RCExploredIPv4Addrs:
|
||||
//RCExploredIPv6Addrs:
|
||||
/* */
|
||||
RCReportedAt: time.Now(),
|
||||
RCReportedVersion: "RCReportedVersion",
|
||||
RCReportedBy: "RCReportedBy",
|
||||
/* */
|
||||
RCErrors: "RCErrors",
|
||||
RCWarnings: "RCWarnings",
|
||||
|
||||
RCExploredVulns: "RCExploredVulns", // TBD: type
|
||||
RCReunningKernelInfo:ReportKernelInfo {
|
||||
"0.0",
|
||||
"0.0",
|
||||
false,
|
||||
},
|
||||
RCPackages: "RCPackages", // TBD: type
|
||||
RCSrcPackages: "RCSrcPackages", // TBD: type
|
||||
RCOptional: "RCOptional", // TBD: type
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue