Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AmbiguousKindError (0.25 sec)

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

    	_, ok := target.(*AmbiguousResourceError)
    	return ok
    }
    
    // AmbiguousKindError is returned if the RESTMapper finds multiple matches for a kind
    type AmbiguousKindError struct {
    	PartialKind schema.GroupVersionKind
    
    	MatchingResources []schema.GroupVersionResource
    	MatchingKinds     []schema.GroupVersionKind
    }
    
    func (e *AmbiguousKindError) Error() string {
    	switch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 11 22:50:51 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/errors_test.go

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