Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for enforceRetentionBypassForPut (0.56 sec)

  1. cmd/bucket-object-lock.go

    			if checkRequestAuthType(ctx, r, policy.BypassGovernanceRetentionAction, bucket, object.ObjectName) != ErrNone {
    				return errAuthentication
    			}
    		}
    	}
    	return nil
    }
    
    // enforceRetentionBypassForPut enforces whether an existing object under governance can be overwritten
    // with governance bypass headers set in the request.
    // Objects under site wide WORM cannot be overwritten.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    		return
    	}
    
    	popts := ObjectOptions{
    		MTime:     opts.MTime,
    		VersionID: opts.VersionID,
    		EvalMetadataFn: func(oi *ObjectInfo, gerr error) (dsc ReplicateDecision, err error) {
    			if err := enforceRetentionBypassForPut(ctx, r, *oi, objRetention, cred, owner); err != nil {
    				return dsc, err
    			}
    			if objRetention.Mode.Valid() {
    				oi.UserDefined[strings.ToLower(xhttp.AmzObjectLockMode)] = string(objRetention.Mode)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top