- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for KindFor (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper_test.go
func (m fixedRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) { return m.resourceFor, m.err } func (m fixedRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { return m.kindFor, m.err } func (m fixedRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (mapping *RESTMapping, err error) { return nil, m.err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 01:49:02 UTC 2018 - 13.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go
mapper := NewDefaultRESTMapper([]schema.GroupVersion{testGroupVersion}) if len(testCase.ExpectedGVK.Kind) != 0 { mapper.Add(testCase.ExpectedGVK, RESTScopeNamespace) } actualGVK, err := mapper.KindFor(testCase.Resource) hasErr := err != nil if hasErr != testCase.Err { t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err) continue } if err != nil { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Nov 01 08:38:57 UTC 2020 - 28.9K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
}, } for _, tc := range tcs { mapper := PriorityRESTMapper{Delegate: tc.delegate, KindPriority: tc.kindPatterns} actualResult, actualErr := mapper.KindFor(schema.GroupVersionResource{}) if e, a := tc.result, actualResult; e != a { t.Errorf("%s: expected %v, got %v", tc.name, e, a) } if len(tc.err) == 0 && actualErr == nil { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)