diff --git a/src/genmai/ReportDBus.go b/src/genmai/ReportDBus.go new file mode 100644 index 0000000..891c99f --- /dev/null +++ b/src/genmai/ReportDBus.go @@ -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 + }, + } +}