Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,198 for verb (0.05 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    			IsResourceRequest: false,
    			Path:              "/openapi/v2",
    			Verb:              "goodverb",
    		},
    		User: ui,
    	}
    	checkRules(t, true, reqRN, []flowcontrol.PolicyRulesWithSubjects{{
    		Subjects: []flowcontrol.Subject{{Kind: flowcontrol.SubjectKindUser,
    			User: &flowcontrol.UserSubject{Name: "goodu"}}},
    		ResourceRules: []flowcontrol.ResourcePolicyRule{{
    			Verbs:      []string{"goodverb"},
    			APIGroups:  []string{"goodapig"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repairip_test.go

    		t.Fatalf("Expected at least %d actions, got %d \ndiff: %v", len(expected), len(actions), cmp.Diff(expected, actions))
    	}
    
    	for i, action := range actions {
    		verb := expected[i][0]
    		if action.GetVerb() != verb {
    			t.Errorf("Expected action %d verb to be %s, got %s", i, verb, action.GetVerb())
    		}
    		resource := expected[i][1]
    		if action.GetResource().Resource != resource {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.conversion.go

    	out.Level = audit.Level(in.Level)
    	out.AuditID = types.UID(in.AuditID)
    	out.Stage = audit.Stage(in.Stage)
    	out.RequestURI = in.RequestURI
    	out.Verb = in.Verb
    	out.User = in.User
    	out.ImpersonatedUser = (*authenticationv1.UserInfo)(unsafe.Pointer(in.ImpersonatedUser))
    	out.SourceIPs = *(*[]string)(unsafe.Pointer(&in.SourceIPs))
    	out.UserAgent = in.UserAgent
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 06 19:08:27 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/audit/v1/generated.proto

      optional string stage = 3;
    
      // RequestURI is the request URI as sent by the client to a server.
      optional string requestURI = 4;
    
      // Verb is the kubernetes verb associated with the request.
      // For non-resource requests, this is the lower-cased HTTP method.
      optional string verb = 5;
    
      // Authenticated user information.
      optional .k8s.io.api.authentication.v1.UserInfo user = 6;
    
      // Impersonated user information.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/fmt/errors_test.go

    	}, {
    		err:        fmt.Errorf("%s %w %v", "prefix", wrapped, "suffix"),
    		wantText:   "prefix inner error suffix",
    		wantUnwrap: wrapped,
    	}, {
    		err:        fmt.Errorf("%[2]s: %[1]w", wrapped, "positional verb"),
    		wantText:   "positional verb: inner error",
    		wantUnwrap: wrapped,
    	}, {
    		err:      fmt.Errorf("%v", wrapped),
    		wantText: "inner error",
    	}, {
    		err:      fmt.Errorf("added context: %v", wrapped),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 18:40:40 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. pkg/log/default_test.go

    				defaultScope.SetLogCallers(c.caller)
    
    				c.f()
    				_ = Sync()
    			})
    
    			if exitCalled != c.wantExit {
    				var verb string
    				if c.wantExit {
    					verb = " never"
    				}
    				t.Errorf("os.Exit%s called", verb)
    			}
    
    			if err != nil {
    				t.Errorf("Got error '%v', expected success", err)
    			}
    
    			if match, _ := regexp.MatchString(c.pat, lines[0]); !match {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/testing/testing.go

    		return nil
    	}
    	logger := klog.FromContext(ctx)
    	for i, expected := range r.errors {
    		logger.V(4).Info("Trying to match resource verb", "resource", action.GetResource(), "verb", action.GetVerb(), "expectedResource", expected.Resource, "expectedVerb", expected.Verb)
    		if action.Matches(expected.Verb, expected.Resource) {
    			// That's the action we're waiting for, remove it from injectedErrors
    			r.errors = append(r.errors[:i], r.errors[i+1:]...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/rule.go

    			return true
    		}
    	}
    	return false
    }
    
    func matchesResourcePolicyRule(ri *request.RequestInfo, policyRule flowcontrol.ResourcePolicyRule) bool {
    	if !matchPolicyRuleVerb(policyRule.Verbs, ri.Verb) {
    		return false
    	}
    	if !matchPolicyRuleResource(policyRule.Resources, ri.Resource, ri.Subresource) {
    		return false
    	}
    	if !matchPolicyRuleAPIGroup(policyRule.APIGroups, ri.APIGroup) {
    		return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/ld.go

    		}
    		if line == "" || strings.HasPrefix(line, "#") {
    			continue
    		}
    
    		verb, args, found := strings.Cut(line, " ")
    		if found {
    			args = strings.TrimSpace(args)
    		}
    		before, after, exist := strings.Cut(args, "=")
    		if !exist {
    			before = ""
    		}
    		switch verb {
    		default:
    			log.Fatalf("%s:%d: unknown directive %q", file, lineNum, verb)
    		case "packagefile":
    			if before == "" || after == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go

            # HELP apiserver_request_total [STABLE] Counter of apiserver requests broken out for each verb, dry run value, group, version, resource, scope, component, and HTTP response code.
            # TYPE apiserver_request_total counter
            apiserver_request_total{code="200",component="",dry_run="",group="",resource="",scope="",subresource="/healthz",verb="GET",version=""} 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 20:43:16 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top