forked from TrueCloudLab/frostfs-s3-gw
[#535] Support public access block operations
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
4f0f2ca7bd
commit
a7ce40d745
23 changed files with 940 additions and 87 deletions
|
@ -293,6 +293,8 @@ func determineBucketOperation(r *http.Request) string {
|
|||
return true
|
||||
}():
|
||||
return ListObjectsV1Operation
|
||||
case query.Has(PublicAccessBlockQuery):
|
||||
return GetPublicAccessBlockOperation
|
||||
default:
|
||||
return unmatchedBucketOperation
|
||||
}
|
||||
|
@ -316,6 +318,8 @@ func determineBucketOperation(r *http.Request) string {
|
|||
return PutBucketVersioningOperation
|
||||
case query.Has(NotificationQuery):
|
||||
return PutBucketNotificationOperation
|
||||
case query.Has(PublicAccessBlockQuery):
|
||||
return PutPublicAccessBlockOperation
|
||||
case len(query) == 0:
|
||||
return CreateBucketOperation
|
||||
default:
|
||||
|
@ -342,6 +346,8 @@ func determineBucketOperation(r *http.Request) string {
|
|||
return DeleteBucketLifecycleOperation
|
||||
case query.Has(EncryptionQuery):
|
||||
return DeleteBucketEncryptionOperation
|
||||
case query.Has(PublicAccessBlockQuery):
|
||||
return DeletePublicAccessBlockOperation
|
||||
case len(query) == 0:
|
||||
return DeleteBucketOperation
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue