feat: Refactored harmony into a workspace with independent modules per client, completed RusshClient test_connection implementation. Needs refactoring though

This commit is contained in:
jeangab
2024-09-06 16:10:06 -04:00
parent cc01ec5fe5
commit 8592a3bc36
14 changed files with 116 additions and 46 deletions

View File

@@ -1,9 +1,11 @@
use crate::domain::{
hardware::{Location, Host, HostCategory},
use harmony::domain::{
hardware::{Host, HostCategory, Location, NetworkInterface},
inventory::Inventory,
};
pub fn get_fqm_inventory() -> Inventory {
pub fn get_inventory() -> Inventory {
let network = vec![NetworkInterface::new(1_000_000_000, "TODO MAC ADDRESS".into(), true ) ];
let storage = vec![];
Inventory {
location: Location::new(
"1134 Grande Allée Ouest 1er étage, Québec, Qc".into(),
@@ -11,8 +13,8 @@ pub fn get_fqm_inventory() -> Inventory {
),
host: vec![Host {
category: HostCategory::Server,
network: vec![],
storage: vec![],
network,
storage,
labels: vec![],
}],
switch: vec![],