Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 623 for authorizes (0.18 sec)

  1. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage.go

    // NewREST returns a RESTStorage object that will work against policyBinding.
    func NewREST(optsGetter generic.RESTOptionsGetter, authorizer authorizer.Authorizer, policyGetter PolicyGetter, resourceResolver resolver.ResourceResolver) (*REST, error) {
    	r := &REST{}
    	strategy := validatingadmissionpolicybinding.NewStrategy(authorizer, policyGetter, resourceResolver)
    	store := &genericregistry.Store{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    		TypeMeta: fl.TypeMeta,
    		ListMeta: fl.ListMeta,
    		Items:    copiedItems,
    	}
    }
    
    type fakeAuthorizer struct{}
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	return authorizer.DecisionAllow, "", nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. pkg/registry/admissionregistration/rest/storage_apiserver.go

    	validatingwebhookconfigurationstorage "k8s.io/kubernetes/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage"
    )
    
    type RESTStorageProvider struct {
    	Authorizer      authorizer.Authorizer
    	DiscoveryClient discovery.DiscoveryInterface
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. plugin/pkg/admission/certificates/ctbattest/admission.go

    func NewPlugin() *Plugin {
    	return &Plugin{
    		Handler: admission.NewHandler(admission.Create, admission.Update),
    	}
    }
    
    // SetAuthorizer sets the plugin's authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // InspectFeatureGates implements WantsFeatures.
    func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 16:26:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. pkg/registry/rbac/role/policybased/storage_test.go

    	authzCalled := 0
    	fakeStorage := &fakeStorage{}
    	fakeAuthorizer := authorizer.AuthorizerFunc(func(ctx context.Context, attr authorizer.Attributes) (authorizer.Decision, string, error) {
    		authzCalled++
    		if attr.GetUser().GetName() == "steve" {
    			return authorizer.DecisionAllow, "", nil
    		}
    		return authorizer.DecisionNoOpinion, "", nil
    	})
    	fakeRuleResolver, _ := validation.NewTestRuleResolver(
    		nil,
    		nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 09 13:47:19 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  6. pkg/registry/rbac/clusterrole/policybased/storage.go

    type Storage struct {
    	rest.StandardStorage
    
    	authorizer authorizer.Authorizer
    
    	ruleResolver rbacregistryvalidation.AuthorizationRuleResolver
    }
    
    func NewStorage(s rest.StandardStorage, authorizer authorizer.Authorizer, ruleResolver rbacregistryvalidation.AuthorizationRuleResolver) *Storage {
    	return &Storage{s, authorizer, ruleResolver}
    }
    
    // Destroy cleans up resources on shutdown.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/interface.go

    type Matcher interface {
    	// Match is used to take cel evaluations and convert into decisions
    	Match(ctx context.Context, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, authz authorizer.Authorizer) MatchResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors_test.go

    	u := &user.DefaultInfo{Name: "NAME"}
    	cases := []struct {
    		expected    string
    		attributes  authorizer.Attributes
    		reason      string
    		contentType string
    	}{
    		{`{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"forbidden: User \"NAME\" cannot GET path \"/whatever\"","reason":"Forbidden","details":{},"code":403}
    `, authorizer.AttributesRecord{User: u, Verb: "GET", Path: "/whatever"}, "", "application/json"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 07:45:20 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  9. pkg/registry/authorization/OWNERS

    # See the OWNERS docs at https://go.k8s.io/owners
    
    approvers:
      - sig-auth-authorizers-approvers
    reviewers:
      - sig-auth-authorizers-reviewers
    labels:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 10 02:31:26 UTC 2021
    - 164 bytes
    - Viewed (0)
  10. pkg/registry/rbac/OWNERS

    # See the OWNERS docs at https://go.k8s.io/owners
    
    approvers:
      - sig-auth-authorizers-approvers
    reviewers:
      - sig-auth-authorizers-reviewers
    labels:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 10 02:31:26 UTC 2021
    - 164 bytes
    - Viewed (0)
Back to top