BucketAllowKey and BucketDenyKey

This commit is contained in:
Alex Auvolat
2022-05-12 11:19:41 +02:00
parent fe399a3265
commit fc2f73ddb5
5 changed files with 137 additions and 7 deletions
+3
View File
@@ -147,6 +147,9 @@ impl ApiHandler for AdminApiServer {
}
Endpoint::CreateBucket => handle_create_bucket(&self.garage, req).await,
Endpoint::DeleteBucket { id } => handle_delete_bucket(&self.garage, id).await,
// Bucket-key permissions
Endpoint::BucketAllowKey => handle_bucket_allow_key(&self.garage, req).await,
Endpoint::BucketDenyKey => handle_bucket_deny_key(&self.garage, req).await,
_ => Err(Error::NotImplemented(format!(
"Admin endpoint {} not implemented yet",
endpoint.name()