Compare commits

..

1 commit

View file

@ -6,6 +6,8 @@ use crate::io_patagia_Hostd::{
mod io_patagia_Hostd;
const LISTEN_ADDRESS: &str = "unix:/tmp/io.patagia.Hostd";
struct Hostd;
impl VarlinkInterface for Hostd {
@ -22,7 +24,7 @@ impl VarlinkInterface for Hostd {
value: "value".to_string(),
}]),
patagiaAgent: Option::from(PatagiaAgentConfig {
url: "hostname".to_string(),
url: "https://cdn.patagia.dev/patagia-agent/stable".to_string(),
extraMounts: HashMap::new(),
}),
};
@ -43,8 +45,9 @@ fn main() {
);
let ret: Result<(), varlink::Error> = varlink::listen(
svc,
"unix:/tmp/io.patagia.Hostd",
LISTEN_ADDRESS,
&varlink::ListenConfig {
// Listen forever (0 = forever)
idle_timeout: 0,
..Default::default()
},