Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetVersioningConfig (0.11 sec)

  1. cmd/bucket-versioning.go

    	if bucket == minioMetaBucket || strings.HasPrefix(bucket, minioMetaBucket) {
    		return &versioning.Versioning{XMLNS: "http://s3.amazonaws.com/doc/2006-03-01/"}, nil
    	}
    
    	vcfg, _, err := globalBucketMetadataSys.GetVersioningConfig(bucket)
    	return vcfg, err
    }
    
    // NewBucketVersioningSys - creates new versioning system.
    func NewBucketVersioningSys() *BucketVersioningSys {
    	return &BucketVersioningSys{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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