Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,490 for subobject (0.17 sec)

  1. pkg/registry/rbac/validation/rule.go

    		if s == ele {
    			return true
    		}
    	}
    	return false
    }
    
    func appliesToUser(user user.Info, subject rbacv1.Subject, namespace string) bool {
    	switch subject.Kind {
    	case rbacv1.UserKind:
    		return user.GetName() == subject.Name
    
    	case rbacv1.GroupKind:
    		return has(user.GetGroups(), subject.Name)
    
    	case rbacv1.ServiceAccountKind:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 16:51:16 UTC 2020
    - 11.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelMap.java

            ModelRuleDescriptor descriptor = sourceDescriptor.append("named(%s)", name);
            ModelReference<T> subject = ModelReference.of(modelNode.getPath().child(name), elementType);
            modelNode.applyToLink(ModelActionRole.Mutate, new FilteringActionWrapper<T>(elementFilter, subject, NoInputsModelAction.of(subject, descriptor, configAction)));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 23K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/AbstractMethodRuleAction.java

        private final ModelReference<T> subject;
        private final ModelRuleDescriptor descriptor;
    
        public AbstractMethodRuleAction(ModelReference<T> subject, ModelRuleDescriptor descriptor) {
            this.subject = subject;
            this.descriptor = descriptor;
        }
    
        @Override
        public ModelReference<T> getSubject() {
            return subject;
        }
    
        public ModelRuleDescriptor getDescriptor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. pkg/apis/rbac/v1alpha1/conversion_test.go

    				RoleRef:  v1alpha1.RoleRef{Name: "foo", APIGroup: v1alpha1.GroupName},
    				Subjects: []v1alpha1.Subject{{Kind: "User", APIVersion: v1alpha1.SchemeGroupVersion.String(), Name: "bob"}},
    			},
    			expected: &rbacapi.RoleBinding{
    				RoleRef:  rbacapi.RoleRef{Name: "foo", APIGroup: v1alpha1.GroupName},
    				Subjects: []rbacapi.Subject{{Kind: "User", APIGroup: v1alpha1.GroupName, Name: "bob"}},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 15:23:55 UTC 2017
    - 4K bytes
    - Viewed (0)
  5. pkg/registry/rbac/validation/rule_test.go

    	tests := []struct {
    		subjects  []rbacv1.Subject
    		user      user.Info
    		namespace string
    		appliesTo bool
    		index     int
    		testCase  string
    	}{
    		{
    			subjects: []rbacv1.Subject{
    				{Kind: rbacv1.UserKind, Name: "foobar"},
    			},
    			user:      &user.DefaultInfo{Name: "foobar"},
    			appliesTo: true,
    			index:     0,
    			testCase:  "single subject that matches username",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy

            then:
            called
        }
    
        def "multiple arg closure called with correct subject and correct inputs"() {
            given:
            def called = false
            String thing = "1"
            def closure = { String subject, Integer other, String another ->
                called = true
                assert subject.is(thing)
                assert delegate.is(thing)
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. cmd/erasure-sets.go

    	return set.GetObjectNInfo(ctx, bucket, object, rs, h, opts)
    }
    
    // PutObject - writes an object to hashedSet based on the object name.
    func (s *erasureSets) PutObject(ctx context.Context, bucket string, object string, data *PutObjReader, opts ObjectOptions) (objInfo ObjectInfo, err error) {
    	set := s.getHashedSet(object)
    	return set.PutObject(ctx, bucket, object, data, opts)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            onPropertyMissingSet.execute(name, value)
        }
    }
    
    class ActionsTester {
    
        Object subject = "subject"
        String lastMethod
        List lastArgs
    
        void oneAction(Action action) {
            lastMethod = "oneAction"
            lastArgs = [action]
            action.execute(subject)
        }
    
        void twoArgs(String first, Action action) {
            lastMethod = "twoArgs"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    		Subjects: []flowcontrol.Subject{{Kind: flowcontrol.SubjectKindUser,
    			User: &flowcontrol.UserSubject{Name: "goodu"}}},
    		ResourceRules: []flowcontrol.ResourcePolicyRule{{
    			Verbs:      []string{"goodverb"},
    			APIGroups:  []string{"goodapig"},
    			Resources:  []string{"goodrscs"},
    			Namespaces: []string{"goodns"}}}}, {
    		Subjects: []flowcontrol.Subject{{Kind: flowcontrol.SubjectKindGroup,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. src/crypto/x509/verify_test.go

    		}
    
    		k, ok := keys[e.Subject]
    		if !ok {
    			var err error
    			k, err = ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    			if err != nil {
    				t.Fatalf("failed to generate test key: %s", err)
    			}
    			keys[e.Subject] = k
    		}
    		cert := genCertEdge(t, e.Subject, k, e.MutateTemplate, e.Type, issuerCert, issuerKey)
    		certs[e.Subject] = cert
    		if e.Subject == d.Leaf {
    			leaf = cert
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top