Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkPreconditionsPUT (0.21 sec)

  1. cmd/object-handlers-common.go

    	return false
    }
    
    // Validates the preconditions. Returns true if PUT operation should not proceed.
    // Preconditions supported are:
    //
    //	x-minio-source-mtime
    //	x-minio-source-etag
    func checkPreconditionsPUT(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
    	// Return false for methods other than PUT.
    	if r.Method != http.MethodPut && r.Method != http.MethodPost {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    			if _, err := DecryptObjectInfo(&oi, r); err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    			return checkPreconditionsPUT(ctx, w, r, oi, opts)
    		}
    	}
    
    	checksumType := hash.NewChecksumType(r.Header.Get(xhttp.AmzChecksumAlgo))
    	if checksumType.Is(hash.ChecksumInvalid) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    			if _, err := DecryptObjectInfo(&oi, r); err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    			return checkPreconditionsPUT(ctx, w, r, oi, opts)
    		}
    	}
    
    	retPerms := isPutActionAllowed(ctx, getRequestAuthType(r), bucket, object, r, policy.PutObjectRetentionAction)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top