From 527f975ca0047445d284f10596c201017d4e88cf Mon Sep 17 00:00:00 2001 From: chenxinquan Date: Thu, 17 Nov 2022 16:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=86=99src/genmai/ReportDBus.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/genmai/ReportDBus.go | 75 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/genmai/ReportDBus.go 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 + }, + } +}