mirror of
https://github.com/minio/minio.git
synced 2025-05-21 09:33:50 -04:00
Support conditions for ListMultipartUploads and ListParts (#5130)
This commit is contained in:
parent
26e9f78a86
commit
dcdb07433a
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Minio Cloud Storage, (C) 2015, 2016 Minio, Inc.
|
* Minio Cloud Storage, (C) 2015, 2016, 2017 Minio, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -32,9 +32,10 @@ import (
|
|||||||
|
|
||||||
var emptyBucketPolicy = policy.BucketAccessPolicy{}
|
var emptyBucketPolicy = policy.BucketAccessPolicy{}
|
||||||
|
|
||||||
var conditionKeyActionMap = map[string]set.StringSet{
|
var conditionKeyActionMap = policy.ConditionKeyMap{
|
||||||
"s3:prefix": set.CreateStringSet("s3:ListBucket"),
|
"s3:prefix": set.CreateStringSet("s3:ListBucket", "s3:ListBucketMultipartUploads"),
|
||||||
"s3:max-keys": set.CreateStringSet("s3:ListBucket"),
|
"s3:max-keys": set.CreateStringSet("s3:ListBucket", "s3:ListBucketMultipartUploads",
|
||||||
|
"s3:ListMultipartUploadParts"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// supportedActionMap - lists all the actions supported by minio.
|
// supportedActionMap - lists all the actions supported by minio.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user