Improve comments.
Some checks failed
ci/woodpecker/pr/debug Pipeline failed

This commit is contained in:
Aljosha Papsch 2024-09-24 16:05:33 +02:00
parent 8b659015d7
commit 53a8d8e720

View file

@ -201,30 +201,36 @@ pub struct AdminConfig {
pub trace_sink: Option<String>,
}
/// Configuration to apply automatically
/// Configuration to apply without manual intervention
#[derive(Deserialize, Debug, Clone, Default)]
pub struct AutoConfig {
/// Buckets to create automatically
pub buckets: Vec<AutoBucket>,
/// Keys to automatically create on startup
/// Keys to create automatically
pub keys: Vec<AutoKey>,
/// Node layout to automatically configure.
/// Node layout to create automatically
pub nodes: Vec<AutoNode>,
}
/// Key to create automatically
#[derive(Deserialize, Debug, Clone, Default)]
pub struct AutoKey {
/// Key name
pub name: String,
/// Key ID starting with GK
pub id: String,
/// Secret key
pub secret: String,
}
/// Bucket to create automatically
#[derive(Deserialize, Debug, Clone, Default)]
pub struct AutoBucket {
/// Bucket name
pub name: String,
/// Permissions to grant on bucket to given keys
pub allow: Vec<AutoPermission>,
}