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
+3 -1
View File
@@ -83,7 +83,9 @@ impl S3 for FS {
#[tracing::instrument(level = "debug", skip(self, req))]
async fn delete_bucket(&self, req: S3Request<DeleteBucketInput>) -> S3Result<S3Response<DeleteBucketOutput>> {
let _input = req.input;
let input = req.input;
try_!(self.store.delete_bucket(&input.bucket).await);
Ok(S3Response::new(DeleteBucketOutput {}))
}