Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ResourceMapping (0.26 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/selector.go

    	return NewHelper(r.Client, r.Mapping).Watch(r.Namespace, r.ResourceMapping().GroupVersionKind.GroupVersion().String(),
    		&metav1.ListOptions{ResourceVersion: resourceVersion, LabelSelector: r.LabelSelector, FieldSelector: r.FieldSelector})
    }
    
    // ResourceMapping returns the mapping for this resource and implements ResourceMapping
    func (r *Selector) ResourceMapping() *meta.RESTMapping {
    	return r.Mapping
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 15:08:01 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/result.go

    	return &v1.List{
    		ListMeta: metav1.ListMeta{
    			ResourceVersion: version,
    		},
    		Items: raw,
    	}
    }
    
    // ResourceMapping returns a single meta.RESTMapping representing the
    // resources located by the builder, or an error if more than one
    // mapping was found.
    func (r *Result) ResourceMapping() (*meta.RESTMapping, error) {
    	if r.err != nil {
    		return nil, r.err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go

    // beginning after the provided resource version.
    type Watchable interface {
    	Watch(resourceVersion string) (watch.Interface, error)
    }
    
    // ResourceMapping allows an object to return the resource mapping associated with
    // the resource or resources it represents.
    type ResourceMapping interface {
    	ResourceMapping() *meta.RESTMapping
    }
    
    // Info contains temporary info to execute a REST call, or show the results
    // of an already completed REST call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    	}
    	if !apiequality.Semantic.DeepEqual(&pods.Items[0], test.Objects()[0]) {
    		t.Errorf("unexpected object: %#v", test.Objects()[0])
    	}
    
    	mapping, err := b.Do().ResourceMapping()
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if mapping.Resource != (schema.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    	// FieldValidation is the directive used to indicate how the server should perform
    	// field validation (Ignore, Warn, or Strict)
    	FieldValidation string
    }
    
    // NewHelper creates a Helper from a ResourceMapping
    func NewHelper(client RESTClient, mapping *meta.RESTMapping) *Helper {
    	return &Helper{
    		Resource:        mapping.Resource.Resource,
    		RESTClient:      client,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top