!110 编写src/genmai/ReportKernel.go

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

View File

@ -0,0 +1,71 @@
////////////////////////////////////////////////////////////////
//
// Filename: ReportKernel.go
//
// Version: 1.0
// Created: 2022年11月17日 15时29分30秒
// Revision: none
// Compiler: go
//
// Author: alpha
// Organization: alpha
// Contacts: chenxinquan@kylinos.com
//
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Description:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Log:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Todo:
//
////////////////////////////////////////////////////////////////
package genmai
type ReportKernel struct {
ReportCommon
}
func GetADefaultReportKernel() 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
},
}
}