mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Listen bucket notification for multiple prefixes/suffixes (#2911)
* Listen bucket notification for multiple prefixes/suffixes * After review fixes
This commit is contained in:
committed by
Harshavardhana
parent
6199aa0707
commit
73982c8cb6
@@ -1402,10 +1402,11 @@ func getGetBucketNotificationURL(endPoint, bucketName string) string {
|
||||
}
|
||||
|
||||
// return URL for listen bucket notification.
|
||||
func getListenBucketNotificationURL(endPoint, bucketName, prefix, suffix string, events []string) string {
|
||||
func getListenBucketNotificationURL(endPoint, bucketName string, prefixes, suffixes, events []string) string {
|
||||
queryValue := url.Values{}
|
||||
queryValue.Set("prefix", prefix)
|
||||
queryValue.Set("suffix", suffix)
|
||||
|
||||
queryValue["prefix"] = prefixes
|
||||
queryValue["suffix"] = suffixes
|
||||
queryValue["events"] = events
|
||||
return makeTestTargetURL(endPoint, bucketName, "", queryValue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user