DeleteBucket

This commit is contained in:
Alex Auvolat
2022-05-12 11:02:36 +02:00
parent de1a5b87b6
commit fe399a3265
4 changed files with 66 additions and 1 deletions
+1
View File
@@ -146,6 +146,7 @@ impl ApiHandler for AdminApiServer {
handle_get_bucket_info(&self.garage, id, global_alias).await
}
Endpoint::CreateBucket => handle_create_bucket(&self.garage, req).await,
Endpoint::DeleteBucket { id } => handle_delete_bucket(&self.garage, id).await,
_ => Err(Error::NotImplemented(format!(
"Admin endpoint {} not implemented yet",
endpoint.name()