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

Method RemoveLambdaByArn

pkg/notification/notification.go:413–421  ·  view source on GitHub ↗

RemoveLambdaByArn removes all lambda configurations that match the exact specified ARN

(arn Arn)

Source from the content-addressed store, hash-verified

411
412// RemoveLambdaByArn removes all lambda configurations that match the exact specified ARN
413func (b *Configuration) RemoveLambdaByArn(arn Arn) {
414 var lambdas []LambdaConfig
415 for _, lambda := range b.LambdaConfigs {
416 if lambda.Lambda != arn.String() {
417 lambdas = append(lambdas, lambda)
418 }
419 }
420 b.LambdaConfigs = lambdas
421}
422
423// RemoveLambdaByArnEventsPrefixSuffix removes a topic configuration that match the exact specified ARN, events, prefix and suffix
424func (b *Configuration) RemoveLambdaByArnEventsPrefixSuffix(arn Arn, events []EventType, prefix, suffix string) error {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected