Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for requestFunc (0.73 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder_test.go

    	response := &authenticator.Response{User: &user.DefaultInfo{Name: "user", Groups: append(capacity, "original")}}
    	orig := toJson(response)
    
    	adder := authenticator.Request(
    		NewGroupAdder(
    			authenticator.RequestFunc(func(req *http.Request) (*authenticator.Response, bool, error) {
    				return response, true, nil
    			}),
    			[]string{"added"},
    		),
    	)
    
    	r, _, _ := adder.AuthenticateRequest(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    			done := make(chan struct{})
    			auth := WithAuthentication(
    				http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {
    					close(done)
    				}),
    				authenticator.RequestFunc(func(_ *http.Request) (*authenticator.Response, bool, error) {
    					return tt.response, tt.status, tt.err
    				}),
    				http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {
    					close(done)
    				}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top