forked from TrueCloudLab/frostfs-s3-gw
[#357] Add test events and check of bucket notif conf
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
2b6843f8fa
commit
40e7dbf768
5 changed files with 157 additions and 59 deletions
|
@ -34,36 +34,6 @@ type (
|
|||
LambdaFunctionConfiguration struct{}
|
||||
)
|
||||
|
||||
var ValidEvents = map[string]struct{}{
|
||||
"s3:ReducedRedundancyLostObject": {},
|
||||
"s3:ObjectCreated:*": {},
|
||||
"s3:ObjectCreated:Put": {},
|
||||
"s3:ObjectCreated:Post": {},
|
||||
"s3:ObjectCreated:Copy": {},
|
||||
"s3:ObjectCreated:CompleteMultipartUpload": {},
|
||||
"s3:ObjectRemoved:*": {},
|
||||
"s3:ObjectRemoved:Delete": {},
|
||||
"s3:ObjectRemoved:DeleteMarkerCreated": {},
|
||||
"s3:ObjectRestore:*": {},
|
||||
"s3:ObjectRestore:Post": {},
|
||||
"s3:ObjectRestore:Completed": {},
|
||||
"s3:Replication:*": {},
|
||||
"s3:Replication:OperationFailedReplication": {},
|
||||
"s3:Replication:OperationNotTracked": {},
|
||||
"s3:Replication:OperationMissedThreshold": {},
|
||||
"s3:Replication:OperationReplicatedAfterThreshold": {},
|
||||
"s3:ObjectRestore:Delete": {},
|
||||
"s3:LifecycleTransition": {},
|
||||
"s3:IntelligentTiering": {},
|
||||
"s3:ObjectAcl:Put": {},
|
||||
"s3:LifecycleExpiration:*": {},
|
||||
"s3:LifecycleExpiration:Delete": {},
|
||||
"s3:LifecycleExpiration:DeleteMarkerCreated": {},
|
||||
"s3:ObjectTagging:*": {},
|
||||
"s3:ObjectTagging:Put": {},
|
||||
"s3:ObjectTagging:Delete": {},
|
||||
}
|
||||
|
||||
func (n NotificationConfiguration) IsEmpty() bool {
|
||||
return len(n.QueueConfigurations) == 0 && len(n.TopicConfigurations) == 0 && len(n.LambdaFunctionConfigurations) == 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue