mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
add s3 TLS option
This commit is contained in:
parent
b3a1e80f6f
commit
7e54fbd89f
8 changed files with 203 additions and 16 deletions
|
|
@ -100,6 +100,15 @@ pub trait ServiceTrait {
|
|||
Ok(HashMap::default())
|
||||
}
|
||||
|
||||
fn pre_setup(
|
||||
&self,
|
||||
_docker: &Docker,
|
||||
_cloud_id: &str,
|
||||
_config: &HazeConfig,
|
||||
) -> Result<Vec<Vec<String>>> {
|
||||
Ok(Vec::new())
|
||||
}
|
||||
|
||||
async fn post_setup(
|
||||
&self,
|
||||
_docker: &Docker,
|
||||
|
|
@ -205,6 +214,8 @@ impl ServiceTrait for RedisTls {
|
|||
pub enum ServiceType {
|
||||
/// S3 Primary storage and external storage
|
||||
S3,
|
||||
/// S3 Primary storage with TLS
|
||||
S3s,
|
||||
/// S3 multi-object store Primary storage and external storage
|
||||
S3m,
|
||||
/// S3 multi-bucket Primary storage and external storage
|
||||
|
|
@ -307,6 +318,7 @@ impl Service {
|
|||
if let Ok(ty) = ServiceType::from_str(ty) {
|
||||
match ty {
|
||||
ServiceType::S3 => Some(vec![Service::ObjectStore(ObjectStore::S3)]),
|
||||
ServiceType::S3s => Some(vec![Service::ObjectStore(ObjectStore::S3s)]),
|
||||
ServiceType::S3m => Some(vec![Service::ObjectStore(ObjectStore::S3m)]),
|
||||
ServiceType::S3mb => Some(vec![Service::ObjectStore(ObjectStore::S3mb)]),
|
||||
ServiceType::Azure => Some(vec![Service::ObjectStore(ObjectStore::Azure)]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue