Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for KindFor (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go

    	EquivalentResourcesFor(resource schema.GroupVersionResource, subresource string) []schema.GroupVersionResource
    	// KindFor returns the kind expected by the specified resource[/subresource].
    	// A zero value is returned if the kind is unknown.
    	KindFor(resource schema.GroupVersionResource, subresource string) schema.GroupVersionKind
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go

    	if len(ret) == 0 {
    		return nil, &NoResourceMatchError{PartialResource: input}
    	}
    
    	sort.Sort(kindByPreferredGroupVersion{ret, m.defaultGroupVersions})
    	return ret, nil
    }
    
    func (m *DefaultRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) {
    	kinds, err := m.KindsFor(resource)
    	if err != nil {
    		return schema.GroupVersionKind{}, err
    	}
    	if len(kinds) == 1 {
    		return kinds[0], nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 01:55:47 UTC 2021
    - 16.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	gvk := schema.GroupVersionKind{}
    	restMapper, err := b.restMapperFn()
    	if err != nil {
    		return nil, err
    	}
    
    	if fullySpecifiedGVR != nil {
    		gvk, _ = restMapper.KindFor(*fullySpecifiedGVR)
    	}
    	if gvk.Empty() {
    		gvk, _ = restMapper.KindFor(groupResource.WithVersion(""))
    	}
    	if !gvk.Empty() {
    		return restMapper.RESTMapping(gvk.GroupKind(), gvk.Version)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  4. plugin/pkg/admission/gc/gc_admission_test.go

    	initializersChain.Initialize(gcAdmit)
    	return gcAdmit, nil
    }
    
    type neverReturningRESTMapper struct{}
    
    var _ meta.RESTMapper = &neverReturningRESTMapper{}
    
    func (r *neverReturningRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, 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)
  5. pkg/controller/garbagecollector/graph_builder.go

    			continue
    		}
    		if m, ok := toRemove[resource]; ok {
    			current[resource] = m
    			delete(toRemove, resource)
    			kept++
    			continue
    		}
    		kind, err := gb.restMapper.KindFor(resource)
    		if err != nil {
    			errs = append(errs, fmt.Errorf("couldn't look up resource %q: %v", resource, err))
    			continue
    		}
    		c, s, err := gb.controllerFor(logger, resource, kind)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(shop);
        }
    
        @TestSubtype(suppressGetSubtype = true)
        public Comparator<Electronics> supertypeIsTopLevelClass(
            Mall<Indoor>.Retailer<Electronics> shop) {
          return isSubtype(shop);
        }
    
        @TestSubtype
        public Comparator<Electronics> topLevelClassIsNotSupertypeDueToTypeParameter(
            Mall<Indoor>.Retailer<Grocery> shop) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return notSubtype(shop);
        }
    
        @TestSubtype(suppressGetSubtype = true)
        public Comparator<Electronics> supertypeIsTopLevelClass(
            Mall<Indoor>.Retailer<Electronics> shop) {
          return isSubtype(shop);
        }
    
        @TestSubtype
        public Comparator<Electronics> topLevelClassIsNotSupertypeDueToTypeParameter(
            Mall<Indoor>.Retailer<Grocery> shop) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/tasks/BaseSnapshotInputsBuildOperationResult.java

                return findFor(normalizer, BY_NORMALIZER);
            }
    
            static SnapshotTaskInputsBuildOperationResult.FilePropertyAttribute from(DirectorySensitivity directorySensitivity) {
                return findFor(directorySensitivity, BY_DIRECTORY_SENSITIVITY);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 11:36:42 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top