Compare commits

..

1 commit

2 changed files with 5 additions and 11 deletions
hostd/src
internal

View file

@ -1,7 +1,7 @@
use anyhow::Result;
use internal::ipc::patagia::io_patagia_hostd::{
Call_Apply, Call_Describe, Label, Machine, VarlinkInterface,
Call_Apply, Call_Describe, Machine, VarlinkInterface,
};
const LISTEN_ADDRESS: &str = "unix:/tmp/patagia/io.patagia.hostd";
@ -19,16 +19,7 @@ impl VarlinkInterface for PatagiaHostd {
// FIXME: Do something useful
let machine = Machine {
machineId: "123456789".to_string(),
nodeLabels: Some(vec![
Label {
key: "foo".to_string(),
value: "bar".to_string(),
},
Label {
key: "baz".to_string(),
value: "quz".to_string(),
},
]),
nodeLabels: None,
patagiaAgent: None,
};
call.reply(machine)

View file

@ -12,3 +12,6 @@ varlink = "11.0.1"
[build-dependencies]
varlink_generator = "10.1.0"
walkdir = "2.5.0"
[package.metadata.cargo-machete]
ignored = ["serde"]