Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for enforceRetentionBypassForDelete (0.47 sec)

  1. cmd/bucket-object-lock.go

    		if err != nil {
    			internalLogIf(ctx, err, logger.WarningKind)
    			return true
    		}
    		if ret.RetainUntilDate.After(t) {
    			return true
    		}
    	}
    	return false
    }
    
    // enforceRetentionBypassForDelete enforces whether an existing object under governance can be deleted
    // with governance bypass headers set in the request.
    // Objects under site wide WORM can never 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/bucket-handlers.go

    					object.DeleteMarkerReplicationStatus = dsc.PendingStatus()
    				}
    				object.ReplicateDecisionStr = dsc.String()
    			}
    		}
    		if object.VersionID != "" && hasLockEnabled {
    			if err := enforceRetentionBypassForDelete(ctx, r, bucket, object, goi, gerr); err != nil {
    				apiErr := toAPIError(ctx, err)
    				deleteResults[index].errInfo = DeleteError{
    					Code:      apiErr.Code,
    					Message:   apiErr.Description,
    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/object-handlers.go

    			vID = ""
    		}
    	}
    	opts.SetEvalRetentionBypassFn(func(goi ObjectInfo, gerr error) (err error) {
    		err = nil
    		if vID != "" {
    			err := enforceRetentionBypassForDelete(ctx, r, bucket, ObjectToDelete{
    				ObjectV: ObjectV{
    					ObjectName: object,
    					VersionID:  vID,
    				},
    			}, goi, gerr)
    			if err != nil && !isErrObjectNotFound(err) {
    				return err
    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