Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetVersioningConfig (0.16 sec)

  1. cmd/bucket-metadata-sys.go

    	meta, ok := sys.metadataMap[bucket]
    	if !ok {
    		return newBucketMetadata(bucket), errConfigNotFound
    	}
    
    	return meta, nil
    }
    
    // GetVersioningConfig returns configured versioning config
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetVersioningConfig(bucket string) (*versioning.Versioning, time.Time, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    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/admin-bucket-handlers.go

    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case bucketVersioningConfig:
    				config, _, err := globalBucketMetadataSys.GetVersioningConfig(bucket)
    				if err != nil {
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    					return
    				}
    				// ignore empty versioning configs
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    	if versioning != nil {
    		// skip overwrite if local update is newer than peer update.
    		if !updatedAt.IsZero() {
    			if _, updateTm, err := globalBucketMetadataSys.GetVersioningConfig(bucket); err == nil && updateTm.After(updatedAt) {
    				return nil
    			}
    		}
    		configData, err := base64.StdEncoding.DecodeString(*versioning)
    		if err != nil {
    			return wrapSRErr(err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top