MCPcopy
hub / github.com/minio/minio-go / RemoveQueueByArn

Method RemoveQueueByArn

pkg/notification/notification.go:385–393  ·  view source on GitHub ↗

RemoveQueueByArn removes all queue configurations that match the exact specified ARN

(arn Arn)

Source from the content-addressed store, hash-verified

383
384// RemoveQueueByArn removes all queue configurations that match the exact specified ARN
385func (b *Configuration) RemoveQueueByArn(arn Arn) {
386 var queues []QueueConfig
387 for _, queue := range b.QueueConfigs {
388 if queue.Queue != arn.String() {
389 queues = append(queues, queue)
390 }
391 }
392 b.QueueConfigs = queues
393}
394
395// RemoveQueueByArnEventsPrefixSuffix removes a queue configuration that match the exact specified ARN, events, prefix and suffix
396func (b *Configuration) RemoveQueueByArnEventsPrefixSuffix(arn Arn, events []EventType, prefix, suffix string) error {

Callers 1

testBucketNotificationFunction · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected