Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InstrumentedAuthorizer (0.48 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics.go

    }
    
    func InstrumentedAuthorizer(authorizerType string, authorizerName string, delegate authorizer.Authorizer) authorizer.Authorizer {
    	RegisterMetrics()
    	return &instrumentedAuthorizer{
    		authorizerType: string(authorizerType),
    		authorizerName: authorizerName,
    		delegate:       delegate,
    	}
    }
    
    type instrumentedAuthorizer struct {
    	authorizerType string
    	authorizerName string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/authorizer/reload.go

    			ruleResolvers = append(ruleResolvers, r.nodeAuthorizer)
    		case authzconfig.AuthorizerType(modes.ModeAlwaysAllow):
    			alwaysAllowAuthorizer := authorizerfactory.NewAlwaysAllowAuthorizer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

    	metrics := []string{
    		namespace + "_" + subsystem + "_decisions_total",
    	}
    
    	authorizationDecisionsTotal.Reset()
    	RegisterMetrics()
    
    	dummyAuthorizer := &dummyAuthorizer{}
    	a := InstrumentedAuthorizer("mytype", "myname", dummyAuthorizer)
    
    	// allow
    	{
    		dummyAuthorizer.decision = authorizer.DecisionAllow
    		_, _, _ = a.Authorize(context.Background(), nil)
    		expectedValue := prefix + `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top