Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetNotificationConfig (0.12 sec)

  1. cmd/bucket-metadata-sys.go

    		return nil, time.Time{}, BucketLifecycleNotFound{Bucket: bucket}
    	}
    	return meta.lifecycleConfig, meta.LifecycleConfigUpdatedAt, nil
    }
    
    // GetNotificationConfig returns configured notification config
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetNotificationConfig(bucket string) (*event.Config, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/bucket-notification-handlers.go

    	}
    
    	_, err := objAPI.GetBucketInfo(ctx, bucketName, BucketOptions{})
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	config, err := globalBucketMetadataSys.GetNotificationConfig(bucketName)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	region := globalSite.Region()
    	config.SetRegion(region)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case bucketNotificationConfig:
    				config, err := globalBucketMetadataSys.GetNotificationConfig(bucket)
    				if err != nil {
    					adminLogIf(ctx, err)
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    					return
    				}
    				configData, err := xml.Marshal(config)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top