-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
host-containers: get containers from config file
This removes the dependency on calling the Settings API. It instead depends on a config file (defaults to /etc/host-containers/host-containers.toml) Signed-off-by: Sam Berning <[email protected]>
- Loading branch information
1 parent
589d466
commit 86607d1
Showing
5 changed files
with
65 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use model_derive::model; | ||
use modeled_types::{Identifier, Url, ValidBase64}; | ||
use std::collections::HashMap; | ||
|
||
#[model] | ||
struct HostContainersConfig { | ||
host_containers: HashMap<Identifier, HostContainer>, | ||
} | ||
|
||
#[model] | ||
struct HostContainer { | ||
source: Url, | ||
enabled: bool, | ||
superpowered: bool, | ||
user_data: ValidBase64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters