Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewGenericServerResponse (0.57 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    		t.Errorf("unexpected %d", time)
    	}
    	if time, ok := SuggestsClientDelay(NewGenericServerResponse(429, "get", resource("tests"), "test", "doing something", 10, true)); time != 10 || !ok {
    		t.Errorf("unexpected %d", time)
    	}
    	if time, ok := SuggestsClientDelay(NewGenericServerResponse(500, "get", resource("tests"), "test", "doing something", 10, true)); time != 10 || !ok {
    		t.Errorf("unexpected %d", time)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    					maxJSONPatchOperations, len(patchObj)))
    		}
    		patchedJS, err := patchObj.Apply(versionedJS)
    		if err != nil {
    			return nil, nil, errors.NewGenericServerResponse(http.StatusUnprocessableEntity, "", schema.GroupResource{}, "", err.Error(), 0, false)
    		}
    		return patchedJS, strictErrors, nil
    	case types.MergePatchType:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top