Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getListObjectsV2Args (0.15 sec)

  1. cmd/api-resources.go

    	delimiter = values.Get("delimiter")
    	encodingType = values.Get("encoding-type")
    	versionIDMarker = values.Get("version-id-marker")
    	return
    }
    
    // Parse bucket url queries for ListObjects V2.
    func getListObjectsV2Args(values url.Values) (prefix, token, startAfter, delimiter string, fetchOwner bool, maxkeys int, encodingType string, errCode APIErrorCode) {
    	errCode = ErrNone
    
    	// The continuation-token cannot be empty.
    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

    			encodingType: "",
    			errCode:      ErrIncorrectContinuationToken,
    		},
    	}
    
    	for i, testCase := range testCases {
    		prefix, token, startAfter, delimiter, fetchOwner, maxKeys, encodingType, errCode := getListObjectsV2Args(testCase.values)
    
    		if errCode != testCase.errCode {
    			t.Errorf("Test %d: Expected error code:%d, got %d", i+1, testCase.errCode, errCode)
    		}
    		if prefix != testCase.prefix {
    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/bucket-listobjects-handlers.go

    		}
    	}
    	urlValues := r.Form
    
    	// Extract all the listObjectsV2 query params to their native values.
    	prefix, token, startAfter, delimiter, fetchOwner, maxKeys, encodingType, errCode := getListObjectsV2Args(urlValues)
    	if errCode != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	// Validate the query params before beginning to serve the request.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top