aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-08-28 16:34:38 +0200
committerLinnea Gräf <nea@nea.moe>2024-08-28 16:34:38 +0200
commitaa5c8ee5a49000d8e0f10ce1c5c1d5a57ae88e25 (patch)
tree9525ded08e2ea48b2c50127208f99327cc9883ea /src/config.rs
parente4b9a9b40838777d4d017001fef00e1c57efbb0c (diff)
downloadfagit-aa5c8ee5a49000d8e0f10ce1c5c1d5a57ae88e25.tar.gz
fagit-aa5c8ee5a49000d8e0f10ce1c5c1d5a57ae88e25.tar.bz2
fagit-aa5c8ee5a49000d8e0f10ce1c5c1d5a57ae88e25.zip
Add initial stuff for the configHEADmaster
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 5e8cc5d..9335cca 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,5 +1,7 @@
use std::path::Path;
+use serde::Deserialize;
+
pub fn ssh_user() -> &'static str {
return "git";
}
@@ -9,3 +11,13 @@ pub fn binary_path() -> &'static str {
pub fn repo_store() -> &'static Path {
return Path::new("/opt/fagit/store/");
}
+
+#[derive(Deserialize, Default)]
+pub struct RepoConfig {
+ pub access: Vec<KeyPermission>,
+}
+
+#[derive(Deserialize)]
+pub struct KeyPermission {
+ key: String,
+}