Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getObjectResources (0.11 sec)

  1. cmd/api-resources.go

    	uploadIDMarker = values.Get("upload-id-marker")
    	delimiter = values.Get("delimiter")
    	encodingType = values.Get("encoding-type")
    	return
    }
    
    // Parse object url queries
    func getObjectResources(values url.Values) (uploadID string, partNumberMarker, maxParts int, encodingType string, errCode APIErrorCode) {
    	var err error
    	errCode = ErrNone
    
    	if values.Get("max-parts") != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 07 18:25:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. cmd/api-resources_test.go

    			partNumberMarker: 1,
    			maxParts:         1000,
    			encodingType:     "gzip",
    		},
    	}
    
    	for i, testCase := range testCases {
    		uploadID, partNumberMarker, maxParts, encodingType, argsErr := getObjectResources(testCase.values)
    		if argsErr != ErrNone {
    			t.Errorf("Test %d: argument parsing failed, got %v", i+1, argsErr)
    		}
    		if uploadID != testCase.uploadID {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  3. cmd/object-multipart-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Get upload id.
    	uploadID, _, _, _, s3Error := getObjectResources(r.Form)
    	if s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Content-Length is required and should be non-zero
    	if r.ContentLength <= 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
Back to top