Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetObjectLockConfig (0.12 sec)

  1. cmd/bucket-metadata-sys.go

    		return nil, time.Time{}, BucketTaggingNotFound{Bucket: bucket}
    	}
    	return meta.taggingConfig, meta.TaggingConfigUpdatedAt, nil
    }
    
    // GetObjectLockConfig returns configured object lock config
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetObjectLockConfig(bucket string) (*objectlock.Config, 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/bucket-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Deny object locking configuration settings on existing buckets without object lock enabled.
    	if _, _, err = globalBucketMetadataSys.GetObjectLockConfig(bucket); err != nil {
    		if _, ok := err.(BucketObjectLockConfigNotFound); ok {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrObjectLockConfigurationNotAllowed), r.URL)
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case objectLockConfig:
    				config, _, err := globalBucketMetadataSys.GetObjectLockConfig(bucket)
    				if err != nil {
    					if errors.Is(err, BucketObjectLockConfigNotFound{Bucket: bucket}) {
    						continue
    					}
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    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/bucket-replication.go

    			}
    			if ret, err := globalBucketObjectLockSys.Get(bucket); err == nil {
    				if ret.LockEnabled {
    					lock, _, _, _, err := clnt.GetObjectLockConfig(ctx, arn.Bucket)
    					if err != nil {
    						return sameTarget, errorCodes.ToAPIErrWithErr(ErrReplicationDestinationMissingLock, err)
    					}
    					if lock != objectlock.Enabled {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
Back to top