补点儿文字
Signed-off-by: Jia Chao <jiac13@chinaunicom.cn>
This commit is contained in:
parent
969f62f547
commit
5c67ef12d9
|
@ -4,6 +4,8 @@ use cvrf_xmlparser::{SaInfo, CVE};
|
|||
use serde::{Deserialize, Serialize};
|
||||
use updateinfo_xmlparser::{UpdateInfoDb, RpmInfo};
|
||||
|
||||
// PackageDb 从 updateinfo 中获取
|
||||
// 以包名为键,值为一个 Vector ,里面包含更新的不同版本的 rpm 包信息
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct PacakgeDb {
|
||||
db: HashMap<String, Vec<RpmInfo>>,
|
||||
|
@ -31,6 +33,10 @@ impl PacakgeDb {
|
|||
}
|
||||
}
|
||||
|
||||
// SaDb 为精简版的安全公告集
|
||||
// 一般从安全公告相关的 xml 文件解析、转换而来
|
||||
// 目前支持 cvrf 格式
|
||||
// 其键为 SA id,值为详情
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct SaDb {
|
||||
db: HashMap<String, SaInfo>,
|
||||
|
@ -64,6 +70,8 @@ impl SaDb {
|
|||
}
|
||||
}
|
||||
|
||||
// CveDb 中的 CVE,以 cve_id -> cve_info 形式存储
|
||||
// 目前的来源为 cvrf 文件,SaDb
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct CveDb {
|
||||
db: HashMap<String, CVE>,
|
||||
|
|
Loading…
Reference in New Issue
Block a user