aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
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,
+}