mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
add sftp with key authentication service
This commit is contained in:
parent
f99238121b
commit
204fb676d6
19 changed files with 348 additions and 135 deletions
|
|
@ -2,7 +2,7 @@ use crate::cloud::CloudOptions;
|
|||
use crate::config::HazeConfig;
|
||||
use crate::exec::exec;
|
||||
use crate::image::{image_exists, pull_image};
|
||||
use crate::service::ServiceTrait;
|
||||
use crate::service::{split_cmnd, ServiceTrait};
|
||||
use crate::Result;
|
||||
use bollard::models::{ContainerCreateBody, EndpointSettings, HostConfig, NetworkingConfig};
|
||||
use bollard::query_parameters::CreateContainerOptions;
|
||||
|
|
@ -101,11 +101,11 @@ impl ServiceTrait for Kaspersky {
|
|||
_docker: &Docker,
|
||||
_cloud_id: &str,
|
||||
_config: &HazeConfig,
|
||||
) -> Result<Vec<String>> {
|
||||
) -> Result<Vec<Vec<String>>> {
|
||||
Ok(vec![
|
||||
"occ config:app:set files_antivirus av_mode --value=kaspersky".into(),
|
||||
"occ config:app:set files_antivirus av_host --value=kaspersky".into(),
|
||||
"occ config:app:set files_antivirus av_port --value=80".into(),
|
||||
split_cmnd("occ config:app:set files_antivirus av_mode --value=kaspersky"),
|
||||
split_cmnd("occ config:app:set files_antivirus av_host --value=kaspersky"),
|
||||
split_cmnd("occ config:app:set files_antivirus av_port --value=80"),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
|
@ -187,13 +187,15 @@ impl ServiceTrait for KasperskyIcap {
|
|||
_docker: &Docker,
|
||||
_cloud_id: &str,
|
||||
_config: &HazeConfig,
|
||||
) -> Result<Vec<String>> {
|
||||
) -> Result<Vec<Vec<String>>> {
|
||||
Ok(vec![
|
||||
"occ config:app:set files_antivirus av_mode --value=icap".into(),
|
||||
"occ config:app:set files_antivirus av_host --value=kaspersky-icap".into(),
|
||||
"occ config:app:set files_antivirus av_port --value=1344".into(),
|
||||
"occ config:app:set files_antivirus av_icap_request_service --value=req".into(),
|
||||
"occ config:app:set files_antivirus av_icap_response_header --value=X-Virus-ID".into(),
|
||||
split_cmnd("occ config:app:set files_antivirus av_mode --value=icap"),
|
||||
split_cmnd("occ config:app:set files_antivirus av_host --value=kaspersky-icap"),
|
||||
split_cmnd("occ config:app:set files_antivirus av_port --value=1344"),
|
||||
split_cmnd("occ config:app:set files_antivirus av_icap_request_service --value=req"),
|
||||
split_cmnd(
|
||||
"occ config:app:set files_antivirus av_icap_response_header --value=X-Virus-ID",
|
||||
),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue