|
|
@ -149,15 +149,27 @@ func (sys *BucketMetadataSys) Update(bucket string, configFile string, configDat |
|
|
|
meta.EncryptionConfigXML = configData |
|
|
|
meta.EncryptionConfigXML = configData |
|
|
|
case bucketTaggingConfig: |
|
|
|
case bucketTaggingConfig: |
|
|
|
meta.TaggingConfigXML = configData |
|
|
|
meta.TaggingConfigXML = configData |
|
|
|
|
|
|
|
case bucketQuotaConfigFile: |
|
|
|
|
|
|
|
meta.QuotaConfigJSON = configData |
|
|
|
case objectLockConfig: |
|
|
|
case objectLockConfig: |
|
|
|
|
|
|
|
if !globalIsErasure && !globalIsDistErasure { |
|
|
|
|
|
|
|
return NotImplemented{} |
|
|
|
|
|
|
|
} |
|
|
|
meta.ObjectLockConfigXML = configData |
|
|
|
meta.ObjectLockConfigXML = configData |
|
|
|
case bucketVersioningConfig: |
|
|
|
case bucketVersioningConfig: |
|
|
|
|
|
|
|
if !globalIsErasure && !globalIsDistErasure { |
|
|
|
|
|
|
|
return NotImplemented{} |
|
|
|
|
|
|
|
} |
|
|
|
meta.VersioningConfigXML = configData |
|
|
|
meta.VersioningConfigXML = configData |
|
|
|
case bucketQuotaConfigFile: |
|
|
|
|
|
|
|
meta.QuotaConfigJSON = configData |
|
|
|
|
|
|
|
case bucketReplicationConfig: |
|
|
|
case bucketReplicationConfig: |
|
|
|
|
|
|
|
if !globalIsErasure && !globalIsDistErasure { |
|
|
|
|
|
|
|
return NotImplemented{} |
|
|
|
|
|
|
|
} |
|
|
|
meta.ReplicationConfigXML = configData |
|
|
|
meta.ReplicationConfigXML = configData |
|
|
|
case bucketTargetsFile: |
|
|
|
case bucketTargetsFile: |
|
|
|
|
|
|
|
if !globalIsErasure && !globalIsDistErasure { |
|
|
|
|
|
|
|
return NotImplemented{} |
|
|
|
|
|
|
|
} |
|
|
|
meta.BucketTargetsConfigJSON = configData |
|
|
|
meta.BucketTargetsConfigJSON = configData |
|
|
|
default: |
|
|
|
default: |
|
|
|
return fmt.Errorf("Unknown bucket %s metadata update requested %s", bucket, configFile) |
|
|
|
return fmt.Errorf("Unknown bucket %s metadata update requested %s", bucket, configFile) |
|
|
|