!109 编写src/genmai/ReportDBus.go

Merge pull request !109 from a-alpha/alpha-dev
This commit is contained in:
a-alpha 2022-11-17 08:15:20 +00:00 committed by Gitee
commit f8098e94d9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 75 additions and 0 deletions

75
src/genmai/ReportDBus.go Normal file
View File

@ -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
},
}
}