generated from Patagia/template-nix
Compare commits
1 commit
35dd1a7d6e
...
6899ba21ad
Author | SHA1 | Date | |
---|---|---|---|
6899ba21ad |
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue