Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for matcherfunc (0.19 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/errors_test.go

    		// type.
    		input       error
    		new         func() error
    		matcherFunc func(error) bool
    	}{
    		{
    			name:        "AmbiguousResourceError",
    			input:       &AmbiguousResourceError{MatchingResources: []schema.GroupVersionResource{{}}},
    			new:         func() error { return &AmbiguousResourceError{} },
    			matcherFunc: IsAmbiguousError,
    		},
    		{
    			name:        "AmbiguousKindError",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 11 22:50:51 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. cmd/api-router.go

    	// API Router
    	apiRouter := router.PathPrefix(SlashSeparator).Subrouter()
    
    	var routers []*mux.Router
    	for _, domainName := range globalDomainNames {
    		if IsKubernetes() {
    			routers = append(routers, apiRouter.MatcherFunc(func(r *http.Request, match *mux.RouteMatch) bool {
    				host, _, err := net.SplitHostPort(getHost(r))
    				if err != nil {
    					host = r.Host
    				}
    				// Make sure to skip matching minio.<domain>` this is
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. cmd/sts-handlers.go

    	sts := &stsAPIHandlers{}
    
    	// STS Router
    	stsRouter := router.NewRoute().PathPrefix(SlashSeparator).Subrouter()
    
    	// Assume roles with no JWT, handles AssumeRole.
    	stsRouter.Methods(http.MethodPost).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
    		ctypeOk := wildcard.MatchSimple("application/x-www-form-urlencoded*", r.Header.Get(xhttp.ContentType))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. src/testing/match.go

    	// accept partial match that may produce full match later.
    	ok, partial = m.filter.matches(elem, m.matchFunc)
    	if !ok {
    		return name, false, false
    	}
    
    	// skip must not match.
    	// ignore partial match so we can get to more precise match later.
    	skip, partialSkip := m.skip.matches(elem, m.matchFunc)
    	if skip && !partialSkip {
    		return name, false, false
    	}
    
    	return name, ok, partial
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    func Matches(
    	resourceQuota *corev1.ResourceQuota, item runtime.Object,
    	matchFunc MatchingResourceNamesFunc, scopeFunc MatchesScopeFunc) (bool, error) {
    	if resourceQuota == nil {
    		return false, fmt.Errorf("expected non-nil quota")
    	}
    	// verify the quota matches on at least one resource
    	matchResource := len(matchFunc(quota.ResourceNames(resourceQuota.Status.Hard))) > 0
    	// by default, no scopes matches all
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    		}
    		f.DefinitionMatchFuncs[key] = matchFunc
    	}
    }
    
    func (f *fakeMatcher) RegisterBinding(binding *admissionregistrationv1.ValidatingAdmissionPolicyBinding, matchFunc func(generic.BindingAccessor, admission.Attributes) bool) {
    	namespace, name := binding.Namespace, binding.Name
    	key := types.NamespacedName{
    		Name:      name,
    		Namespace: namespace,
    	}
    
    	if matchFunc != nil {
    		if f.BindingMatchFuncs == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top