Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lockEnabled (0.06 sec)

  1. cmd/object-handlers.go

    	opts, err := delOpts(ctx, r, bucket, object)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	rcfg, _ := globalBucketObjectLockSys.Get(bucket)
    	if rcfg.LockEnabled && opts.DeletePrefix {
    		apiErr := toAPIError(ctx, errInvalidArgument)
    		apiErr.Description = "force-delete is forbidden on Object Locking enabled buckets"
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    	// At this point, the local bucket is created.
    
    	c.RLock()
    	defer c.RUnlock()
    	if !c.enabled {
    		return nil
    	}
    
    	optsMap := make(map[string]string)
    	if opts.LockEnabled {
    		optsMap["lockEnabled"] = "true"
    		optsMap["versioningEnabled"] = "true"
    	}
    	if opts.VersioningEnabled {
    		optsMap["versioningEnabled"] = "true"
    	}
    	if opts.ForceCreate {
    		optsMap["forceCreate"] = "true"
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    				return sameTarget, errorCodes.ToAPIErrWithErr(ErrRemoteDestinationNotFoundError, BucketRemoteTargetNotFound{Bucket: arn.Bucket})
    			}
    			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)
    					}
    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