Compare commits

..

1 commit

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

View file

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

View file

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