mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
smb service
This commit is contained in:
parent
fd8f1451ff
commit
ef1141d125
2 changed files with 80 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue