mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-04-20 03:06:26 +02:00
add more formatting to --print-default
This commit is contained in:
parent
1ab4d089a2
commit
d5fe7cbe5c
@ -90,11 +90,11 @@ pub struct Config {
|
|||||||
|
|
||||||
/// Actors to load and their configuration options
|
/// Actors to load and their configuration options
|
||||||
pub actors: HashMap<String, ModuleConfig>,
|
pub actors: HashMap<String, ModuleConfig>,
|
||||||
pub actor_connections: Vec<(String, String)>,
|
pub actor_connections: HashMap<String, String>,
|
||||||
|
|
||||||
/// Initiators to load and their configuration options
|
/// Initiators to load and their configuration options
|
||||||
pub initiators: HashMap<String, ModuleConfig>,
|
pub initiators: HashMap<String, ModuleConfig>,
|
||||||
pub init_connections: Vec<(String, String)>,
|
pub init_connections: HashMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
@ -167,9 +167,9 @@ impl Default for Config {
|
|||||||
"resource_a".to_string(),
|
"resource_a".to_string(),
|
||||||
MachineDescription {
|
MachineDescription {
|
||||||
name: "Resource A".to_string(),
|
name: "Resource A".to_string(),
|
||||||
description: Option::from("Some description".to_string()),
|
description: Option::from("A description".to_string()),
|
||||||
wiki: Option::from("Some wiki url".to_string()),
|
wiki: Option::from("https://some.wiki.url".to_string()),
|
||||||
category: Option::from("Some category".to_string()),
|
category: Option::from("A category".to_string()),
|
||||||
privs: PrivilegesBuf {
|
privs: PrivilegesBuf {
|
||||||
disclose: PermissionBuf {
|
disclose: PermissionBuf {
|
||||||
inner: "lab.some.disclose".to_string(),
|
inner: "lab.some.disclose".to_string(),
|
||||||
@ -191,9 +191,9 @@ impl Default for Config {
|
|||||||
"resource_b".to_string(),
|
"resource_b".to_string(),
|
||||||
MachineDescription {
|
MachineDescription {
|
||||||
name: "Resource B".to_string(),
|
name: "Resource B".to_string(),
|
||||||
description: Option::from("Some description".to_string()),
|
description: Option::from("A description".to_string()),
|
||||||
wiki: Option::from("Some wiki url".to_string()),
|
wiki: Option::from("https://some.wiki.url".to_string()),
|
||||||
category: Option::from("Some category".to_string()),
|
category: Option::from("A category".to_string()),
|
||||||
privs: PrivilegesBuf {
|
privs: PrivilegesBuf {
|
||||||
disclose: PermissionBuf {
|
disclose: PermissionBuf {
|
||||||
inner: "lab.some.disclose".to_string(),
|
inner: "lab.some.disclose".to_string(),
|
||||||
@ -248,9 +248,9 @@ impl Default for Config {
|
|||||||
roles,
|
roles,
|
||||||
machines,
|
machines,
|
||||||
actors,
|
actors,
|
||||||
actor_connections: vec![("actor_123".to_string(), "resource_a".to_string())],
|
actor_connections: vec!(("actor".to_string(), "actor_123".to_string()), ("machine".to_string(),"resource_a".to_string())).into_iter().collect(),
|
||||||
initiators,
|
initiators,
|
||||||
init_connections: vec![("initiator_123".to_string(), "resource_b".to_string())],
|
init_connections: vec!(("initiator".to_string(), "initiator_123".to_string()), ("machine".to_string(),"resource_b".to_string())).into_iter().collect(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user