1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

smb service

This commit is contained in:
Robin Appelman 2021-10-28 17:18:32 +02:00
commit ef1141d125
2 changed files with 80 additions and 0 deletions

View file

@ -2,12 +2,14 @@ mod ldap;
mod objectstore;
mod onlyoffice;
mod push;
mod smb;
use crate::config::HazeConfig;
pub use crate::service::ldap::{LDAPAdmin, LDAP};
pub use crate::service::objectstore::ObjectStore;
pub use crate::service::onlyoffice::OnlyOffice;
pub use crate::service::push::NotifyPush;
use crate::service::smb::Smb;
use bollard::models::ContainerState;
use bollard::Docker;
use color_eyre::{eyre::WrapErr, Result};
@ -66,6 +68,7 @@ pub enum Service {
LDAPAdmin(LDAPAdmin),
OnlyOffice(OnlyOffice),
Push(NotifyPush),
Smb(Smb),
}
impl Service {
@ -75,6 +78,7 @@ impl Service {
"ldap" => Some(&[Service::LDAP(LDAP), Service::LDAPAdmin(LDAPAdmin)]),
"onlyoffice" => Some(&[Service::OnlyOffice(OnlyOffice)]),
"push" => Some(&[Service::Push(NotifyPush)]),
"smb" => Some(&[Service::Smb(Smb)]),
_ => None,
}
}