mirror of
https://github.com/minio/minio.git
synced 2026-11-25 15:22:50 +00:00
api: Change listen bucket notification to be TopicConfiguration. (#2447)
This commit is contained in:
1 parent
3b9dbd748b
commit
e86dfcf41e
7 files changed
+128
-128
No files matched your search
@@ -155,15 +155,15 @@ type NotificationEvent struct {
|
||||
S3 eventMeta `json:"s3"`
|
||||
}
|
||||
|
||||
// Represents the minio lambda type and account id's.
|
||||
type arnLambda struct {
|
||||
// Represents the minio topic type and account id's.
|
||||
type arnTopic struct {
|
||||
Type string
|
||||
AccountID string
|
||||
}
|
||||
|
||||
// Stringer for constructing AWS ARN compatible string.
|
||||
func (m arnLambda) String() string {
|
||||
return minioLambda + serverConfig.GetRegion() + ":" + m.AccountID + ":" + m.Type
|
||||
func (m arnTopic) String() string {
|
||||
return minioTopic + serverConfig.GetRegion() + ":" + m.AccountID + ":" + m.Type
|
||||
}
|
||||
|
||||
// Represents the minio sqs type and account id's.
|
||||
|
||||
Reference in new issue
Block a user