Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toAPIError (0.07 sec)

  1. cmd/object-handlers.go

    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    	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)
    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/bucket-replication.go

    		}
    		if arn.Type != madmin.ReplicationService {
    			return sameTarget, toAPIError(ctx, BucketRemoteArnTypeInvalid{Bucket: bucket})
    		}
    		clnt := globalBucketTargetSys.GetRemoteTargetClient(bucket, arnStr)
    		if clnt == nil {
    			return sameTarget, toAPIError(ctx, BucketRemoteTargetNotFound{Bucket: bucket})
    		}
    		if opts.CheckRemoteBucket { // validate remote bucket
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    			uploadID:  uploadIDs[0],
    			parts:     inputParts[0].parts,
    			accessKey: credentials.AccessKey,
    			secretKey: credentials.SecretKey,
    
    			expectedContent: encodeResponse(getAPIErrorResponse(ctx,
    				toAPIError(ctx, InvalidPart{}),
    				getGetObjectURL("", bucketName, objectName), "", "")),
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 2.
    		// No parts specified in CompletePart{}.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    	}
    
    	if customBucket == "" {
    		customBucket = globalObjectPerfBucket
    
    		bucketExists, err := makeObjectPerfBucket(ctx, objectAPI, customBucket)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		if !noClear && !bucketExists {
    			defer deleteObjectPerfBucket(objectAPI)
    		}
    	}
    
    	if !noClear {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top