Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetVersioningConfig (0.1 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)
Back to top