feat: delete bucket

This commit is contained in:
overtrue
2024-07-30 16:54:11 +08:00
parent 6165ac334b
commit 07c11b2097
8 changed files with 128 additions and 20 deletions
+7
View File
@@ -4,6 +4,7 @@ use anyhow::{Error, Result};
use http::HeaderMap;
use s3s::{dto::StreamingBlob, Body};
use tracing::debug;
use uuid::Uuid;
use crate::{
@@ -239,4 +240,10 @@ impl StorageAPI for ECStore {
}
unimplemented!()
}
async fn delete_bucket(&self, bucket: &str) -> Result<()> {
self.peer_sys.delete_bucket(bucket).await?;
Ok(())
}
}