GetBucketNotification returns current bucket notification configuration
(ctx context.Context, bucketName string)
| 79 | |
| 80 | // GetBucketNotification returns current bucket notification configuration |
| 81 | func (c *Client) GetBucketNotification(ctx context.Context, bucketName string) (bucketNotification notification.Configuration, err error) { |
| 82 | // Input validation. |
| 83 | if err := s3utils.CheckValidBucketName(bucketName); err != nil { |
| 84 | return notification.Configuration{}, err |
| 85 | } |
| 86 | return c.getBucketNotification(ctx, bucketName) |
| 87 | } |
| 88 | |
| 89 | // Request server for notification rules. |
| 90 | func (c *Client) getBucketNotification(ctx context.Context, bucketName string) (notification.Configuration, error) { |
no test coverage detected