Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for extractHealInitParams (0.17 sec)

  1. cmd/admin-handlers_test.go

    	body := `{"recursive": false, "dryRun": true, "remove": false, "scanMode": 0}`
    
    	// Test all combinations!
    	for pIdx, params := range qParamsArr {
    		for vIdx, vars := range varsArr {
    			_, err := extractHealInitParams(vars, params, bytes.NewReader([]byte(body)))
    			isErrCase := false
    			if pIdx < 4 || vIdx < 1 {
    				isErrCase = true
    			}
    
    			if err != ErrNone && !isErrCase {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    type healInitParams struct {
    	bucket, objPrefix     string
    	hs                    madmin.HealOpts
    	clientToken           string
    	forceStart, forceStop bool
    }
    
    // extractHealInitParams - Validates params for heal init API.
    func extractHealInitParams(vars map[string]string, qParams url.Values, r io.Reader) (hip healInitParams, err APIErrorCode) {
    	hip.bucket = vars[mgmtBucket]
    	hip.objPrefix = vars[mgmtPrefix]
    
    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