1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

add clamav-icap service

This commit is contained in:
Robin Appelman 2022-03-21 22:33:21 +01:00
commit 255f11899d
4 changed files with 97 additions and 2 deletions

View file

@ -1,3 +1,4 @@
mod clam;
mod kaspersky;
mod ldap;
mod objectstore;
@ -6,6 +7,7 @@ mod push;
mod smb;
use crate::config::HazeConfig;
pub use crate::service::clam::ClamIcap;
use crate::service::kaspersky::{Kaspersky, KasperskyIcap};
pub use crate::service::ldap::{LDAPAdmin, LDAP};
pub use crate::service::objectstore::ObjectStore;
@ -76,6 +78,7 @@ pub enum Service {
Smb(Smb),
Kaspersky(Kaspersky),
KasperskyIcap(KasperskyIcap),
ClamIcap(ClamIcap),
}
impl Service {
@ -89,6 +92,7 @@ impl Service {
"smb" => Some(&[Service::Smb(Smb)]),
"kaspersky" => Some(&[Service::Kaspersky(Kaspersky)]),
"kaspersky-icap" => Some(&[Service::KasperskyIcap(KasperskyIcap)]),
"clamav-icap" => Some(&[Service::ClamIcap(ClamIcap)]),
_ => None,
}
}