Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for matchSingle (0.28 sec)

  1. pkg/test/framework/resource/matcher.go

    		filters = append(filters, rxs)
    	}
    	return &Matcher{filters: filters}, nil
    }
    
    func (m *Matcher) MatchTest(testName string) bool {
    	for _, f := range m.filters {
    		if matchSingle(f, testName) {
    			return true
    		}
    	}
    	return false
    }
    
    func matchSingle(filter testFilter, testName string) bool {
    	if len(filter) == 0 {
    		// No regex defined, we default to NOT matching. This ensures our default skips nothing
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    	return m.RESTClient.Get().
    		NamespaceIfScoped(namespace, m.NamespaceScoped).
    		Resource(m.Resource).
    		VersionedParams(options, metav1.ParameterCodec).
    		Watch(context.TODO())
    }
    
    func (m *Helper) WatchSingle(namespace, name, resourceVersion string) (watch.Interface, error) {
    	return m.RESTClient.Get().
    		NamespaceIfScoped(namespace, m.NamespaceScoped).
    		Resource(m.Resource).
    		VersionedParams(&metav1.ListOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go

    	return len(i.Namespace) > 0
    }
    
    // Watch returns server changes to this object after it was retrieved.
    func (i *Info) Watch(resourceVersion string) (watch.Interface, error) {
    	return NewHelper(i.Client, i.Mapping).WatchSingle(i.Namespace, i.Name, resourceVersion)
    }
    
    // ResourceMapping returns the mapping for this resource and implements ResourceMapping
    func (i *Info) ResourceMapping() *meta.RESTMapping {
    	return i.Mapping
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 21.3K bytes
    - Viewed (0)
Back to top