summaryrefslogtreecommitdiffstats
path: root/crates/common/tedge_users/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/common/tedge_users/src/lib.rs')
-rw-r--r--crates/common/tedge_users/src/lib.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/crates/common/tedge_users/src/lib.rs b/crates/common/tedge_users/src/lib.rs
deleted file mode 100644
index 68ccc32e..00000000
--- a/crates/common/tedge_users/src/lib.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-#[cfg(unix)]
-mod unix;
-
-#[cfg(unix)]
-pub use unix::*;
-
-#[cfg(not(unix))]
-mod windows;
-
-#[cfg(not(unix))]
-pub use windows::*;
-
-pub const ROOT_USER: &str = "root";
-pub const TEDGE_USER: &str = "tedge";
-pub const BROKER_USER: &str = "mosquitto";
-
-#[allow(dead_code)] // These errors are only raised from unix
-#[derive(thiserror::Error, Debug)]
-pub enum UserSwitchError {
- #[error("Tried to become user, but it did not exist: {name}")]
- UnknownUser { name: String },
-
- #[error("Tried to become group, but it did not exist: {name}")]
- UnknownGroup { name: String },
-
- #[error(transparent)]
- NotAuthorized(#[from] std::io::Error),
-}