Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for if (0.17 sec)

  1. cmd/admin-handlers-pools.go

    	if byID {
    		if i, err := strconv.Atoi(v); err == nil && i >= 0 && i < len(globalEndpoints) {
    			idx = i
    		}
    	} else {
    		idx = globalEndpoints.GetPoolIdx(v)
    	}
    
    	if idx == -1 {
    		// We didn't find any matching pools, invalid input
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	if !proxyDecommissionRequest(ctx, globalEndpoints[idx].Endpoints[0], w, r) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
Back to top