Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ResourceFor (0.11 sec)

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

    		return nil, &NoResourceMatchError{PartialResource: resource}
    	}
    
    	sort.Sort(resourceByPreferredGroupVersion{ret, m.defaultGroupVersions})
    	return ret, nil
    }
    
    func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) {
    	resources, err := m.ResourcesFor(resource)
    	if err != nil {
    		return schema.GroupVersionResource{}, err
    	}
    	if len(resources) == 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 01:55:47 UTC 2021
    - 16.1K bytes
    - Viewed (0)
  2. plugin/pkg/admission/gc/gc_admission_test.go

    	// this ok because if the test works, this method should never be called.
    	panic("test failed")
    }
    func (r *neverReturningRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error) {
    	// this ok because if the test works, this method should never be called.
    	panic("test failed")
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top