generated from Patagia/template-nix
Compare commits
1 commit
6949cd1bd7
...
f8c7dc96a2
Author | SHA1 | Date | |
---|---|---|---|
f8c7dc96a2 |
2 changed files with 5 additions and 11 deletions
|
@ -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)
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue