regenerate clients
This commit is contained in:
		| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/autoscaling/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	autoscaling_v1 "k8s.io/api/autoscaling/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,63 +36,21 @@ var horizontalpodautoscalersResource = schema.GroupVersionResource{Group: "autos | ||||
|  | ||||
| var horizontalpodautoscalersKind = schema.GroupVersionKind{Group: "autoscaling", Version: "v1", Kind: "HorizontalPodAutoscaler"} | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *v1.HorizontalPodAutoscaler) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling_v1.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v1.HorizontalPodAutoscaler{}) | ||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.HorizontalPodAutoscaler), err | ||||
| 	return obj.(*autoscaling_v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *v1.HorizontalPodAutoscaler) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling_v1.HorizontalPodAutoscalerList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v1.HorizontalPodAutoscaler) (*v1.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Get(name string, options meta_v1.GetOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) List(opts meta_v1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &v1.HorizontalPodAutoscalerList{}) | ||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &autoscaling_v1.HorizontalPodAutoscalerList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -102,8 +60,8 @@ func (c *FakeHorizontalPodAutoscalers) List(opts meta_v1.ListOptions) (result *v | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.HorizontalPodAutoscalerList{} | ||||
| 	for _, item := range obj.(*v1.HorizontalPodAutoscalerList).Items { | ||||
| 	list := &autoscaling_v1.HorizontalPodAutoscalerList{} | ||||
| 	for _, item := range obj.(*autoscaling_v1.HorizontalPodAutoscalerList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -112,19 +70,69 @@ func (c *FakeHorizontalPodAutoscalers) List(opts meta_v1.ListOptions) (result *v | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *FakeHorizontalPodAutoscalers) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeHorizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling_v1.HorizontalPodAutoscaler) (result *autoscaling_v1.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &v1.HorizontalPodAutoscaler{}) | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.HorizontalPodAutoscaler), err | ||||
| 	return obj.(*autoscaling_v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *autoscaling_v1.HorizontalPodAutoscaler) (result *autoscaling_v1.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling_v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *autoscaling_v1.HorizontalPodAutoscaler) (*autoscaling_v1.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling_v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &autoscaling_v1.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscaling_v1.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &autoscaling_v1.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling_v1.HorizontalPodAutoscaler), err | ||||
| } | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newHorizontalPodAutoscalers(c *AutoscalingV1Client, namespace string) *hori | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options meta_v1.GetOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts meta_v1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *v1.HorizontalPodAutoscaler) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscaler{} | ||||
| @@ -122,41 +157,6 @@ func (c *horizontalPodAutoscalers) DeleteCollection(options *meta_v1.DeleteOptio | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options meta_v1.GetOptions) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts meta_v1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *horizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &v1.HorizontalPodAutoscaler{} | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/batch/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	batch_v1 "k8s.io/api/batch/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,63 +36,21 @@ var jobsResource = schema.GroupVersionResource{Group: "batch", Version: "v1", Re | ||||
|  | ||||
| var jobsKind = schema.GroupVersionKind{Group: "batch", Version: "v1", Kind: "Job"} | ||||
|  | ||||
| func (c *FakeJobs) Create(job *v1.Job) (result *v1.Job, err error) { | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *batch_v1.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &v1.Job{}) | ||||
| 		Invokes(testing.NewGetAction(jobsResource, c.ns, name), &batch_v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Job), err | ||||
| 	return obj.(*batch_v1.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Update(job *v1.Job) (result *v1.Job, err error) { | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *FakeJobs) List(opts v1.ListOptions) (result *batch_v1.JobList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) UpdateStatus(job *v1.Job) (*v1.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &v1.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Get(name string, options meta_v1.GetOptions) (result *v1.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(jobsResource, c.ns, name), &v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) List(opts meta_v1.ListOptions) (result *v1.JobList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(jobsResource, jobsKind, c.ns, opts), &v1.JobList{}) | ||||
| 		Invokes(testing.NewListAction(jobsResource, jobsKind, c.ns, opts), &batch_v1.JobList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -102,8 +60,8 @@ func (c *FakeJobs) List(opts meta_v1.ListOptions) (result *v1.JobList, err error | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.JobList{} | ||||
| 	for _, item := range obj.(*v1.JobList).Items { | ||||
| 	list := &batch_v1.JobList{} | ||||
| 	for _, item := range obj.(*batch_v1.JobList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -112,19 +70,69 @@ func (c *FakeJobs) List(opts meta_v1.ListOptions) (result *v1.JobList, err error | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *FakeJobs) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(jobsResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *FakeJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) { | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Create(job *batch_v1.Job) (result *batch_v1.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, name, data, subresources...), &v1.Job{}) | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &batch_v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Job), err | ||||
| 	return obj.(*batch_v1.Job), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a job and updates it. Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Update(job *batch_v1.Job) (result *batch_v1.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &batch_v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch_v1.Job), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeJobs) UpdateStatus(job *batch_v1.Job) (*batch_v1.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &batch_v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch_v1.Job), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the job and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &batch_v1.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch_v1.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *FakeJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch_v1.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(jobsResource, c.ns, name, data, subresources...), &batch_v1.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch_v1.Job), err | ||||
| } | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newJobs(c *BatchV1Client, namespace string) *jobs { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options meta_v1.GetOptions) (result *v1.Job, err error) { | ||||
| 	result = &v1.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts meta_v1.ListOptions) (result *v1.JobList, err error) { | ||||
| 	result = &v1.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *jobs) Create(job *v1.Job) (result *v1.Job, err error) { | ||||
| 	result = &v1.Job{} | ||||
| @@ -122,41 +157,6 @@ func (c *jobs) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options meta_v1.GetOptions) (result *v1.Job, err error) { | ||||
| 	result = &v1.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts meta_v1.ListOptions) (result *v1.JobList, err error) { | ||||
| 	result = &v1.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *jobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) { | ||||
| 	result = &v1.Job{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newConfigMaps(c *CoreV1Client, namespace string) *configMaps { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options meta_v1.GetOptions) (result *v1.ConfigMap, err error) { | ||||
| 	result = &v1.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||
| 	result = &v1.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *configMaps) Create(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error) { | ||||
| 	result = &v1.ConfigMap{} | ||||
| @@ -105,41 +140,6 @@ func (c *configMaps) DeleteCollection(options *meta_v1.DeleteOptions, listOption | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options meta_v1.GetOptions) (result *v1.ConfigMap, err error) { | ||||
| 	result = &v1.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||
| 	result = &v1.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *configMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) { | ||||
| 	result = &v1.ConfigMap{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newEvents(c *CoreV1Client, namespace string) *events { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options meta_v1.GetOptions) (result *v1.Event, err error) { | ||||
| 	result = &v1.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts meta_v1.ListOptions) (result *v1.EventList, err error) { | ||||
| 	result = &v1.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *events) Create(event *v1.Event) (result *v1.Event, err error) { | ||||
| 	result = &v1.Event{} | ||||
| @@ -105,41 +140,6 @@ func (c *events) DeleteCollection(options *meta_v1.DeleteOptions, listOptions me | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options meta_v1.GetOptions) (result *v1.Event, err error) { | ||||
| 	result = &v1.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts meta_v1.ListOptions) (result *v1.EventList, err error) { | ||||
| 	result = &v1.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *events) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) { | ||||
| 	result = &v1.Event{} | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/core/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	core_v1 "k8s.io/api/core/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,53 +36,21 @@ var configmapsResource = schema.GroupVersionResource{Group: "", Version: "v1", R | ||||
|  | ||||
| var configmapsKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "ConfigMap"} | ||||
|  | ||||
| func (c *FakeConfigMaps) Create(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error) { | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *core_v1.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &v1.ConfigMap{}) | ||||
| 		Invokes(testing.NewGetAction(configmapsResource, c.ns, name), &core_v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.ConfigMap), err | ||||
| 	return obj.(*core_v1.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Update(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error) { | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *core_v1.ConfigMapList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &v1.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Get(name string, options meta_v1.GetOptions) (result *v1.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(configmapsResource, c.ns, name), &v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), &v1.ConfigMapList{}) | ||||
| 		Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), &core_v1.ConfigMapList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -92,8 +60,8 @@ func (c *FakeConfigMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapLis | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.ConfigMapList{} | ||||
| 	for _, item := range obj.(*v1.ConfigMapList).Items { | ||||
| 	list := &core_v1.ConfigMapList{} | ||||
| 	for _, item := range obj.(*core_v1.ConfigMapList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -102,19 +70,57 @@ func (c *FakeConfigMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapLis | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *FakeConfigMaps) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(configmapsResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) { | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Create(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(configmapsResource, c.ns, name, data, subresources...), &v1.ConfigMap{}) | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &core_v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.ConfigMap), err | ||||
| 	return obj.(*core_v1.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Update(configMap *core_v1.ConfigMap) (result *core_v1.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &core_v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the configMap and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &core_v1.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &core_v1.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(configmapsResource, c.ns, name, data, subresources...), &core_v1.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.ConfigMap), err | ||||
| } | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/core/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	core_v1 "k8s.io/api/core/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,53 +36,21 @@ var eventsResource = schema.GroupVersionResource{Group: "", Version: "v1", Resou | ||||
|  | ||||
| var eventsKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Event"} | ||||
|  | ||||
| func (c *FakeEvents) Create(event *v1.Event) (result *v1.Event, err error) { | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *core_v1.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &v1.Event{}) | ||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), &core_v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Event), err | ||||
| 	return obj.(*core_v1.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Update(event *v1.Event) (result *v1.Event, err error) { | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *FakeEvents) List(opts v1.ListOptions) (result *core_v1.EventList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &v1.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Get(name string, options meta_v1.GetOptions) (result *v1.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), &v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) List(opts meta_v1.ListOptions) (result *v1.EventList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), &v1.EventList{}) | ||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), &core_v1.EventList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -92,8 +60,8 @@ func (c *FakeEvents) List(opts meta_v1.ListOptions) (result *v1.EventList, err e | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.EventList{} | ||||
| 	for _, item := range obj.(*v1.EventList).Items { | ||||
| 	list := &core_v1.EventList{} | ||||
| 	for _, item := range obj.(*core_v1.EventList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -102,19 +70,57 @@ func (c *FakeEvents) List(opts meta_v1.ListOptions) (result *v1.EventList, err e | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *FakeEvents) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(eventsResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) { | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Create(event *core_v1.Event) (result *core_v1.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, name, data, subresources...), &v1.Event{}) | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &core_v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Event), err | ||||
| 	return obj.(*core_v1.Event), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Update(event *core_v1.Event) (result *core_v1.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &core_v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Event), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the event and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &core_v1.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &core_v1.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(eventsResource, c.ns, name, data, subresources...), &core_v1.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Event), err | ||||
| } | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/core/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	core_v1 "k8s.io/api/core/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -35,58 +35,20 @@ var namespacesResource = schema.GroupVersionResource{Group: "", Version: "v1", R | ||||
|  | ||||
| var namespacesKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Namespace"} | ||||
|  | ||||
| func (c *FakeNamespaces) Create(namespace *v1.Namespace) (result *v1.Namespace, err error) { | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *core_v1.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &v1.Namespace{}) | ||||
| 		Invokes(testing.NewRootGetAction(namespacesResource, name), &core_v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Namespace), err | ||||
| 	return obj.(*core_v1.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Update(namespace *v1.Namespace) (result *v1.Namespace, err error) { | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *FakeNamespaces) List(opts v1.ListOptions) (result *core_v1.NamespaceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *v1.Namespace) (*v1.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &v1.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Get(name string, options meta_v1.GetOptions) (result *v1.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(namespacesResource, name), &v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(namespacesResource, namespacesKind, opts), &v1.NamespaceList{}) | ||||
| 		Invokes(testing.NewRootListAction(namespacesResource, namespacesKind, opts), &core_v1.NamespaceList{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| @@ -95,8 +57,8 @@ func (c *FakeNamespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceLis | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.NamespaceList{} | ||||
| 	for _, item := range obj.(*v1.NamespaceList).Items { | ||||
| 	list := &core_v1.NamespaceList{} | ||||
| 	for _, item := range obj.(*core_v1.NamespaceList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -105,17 +67,63 @@ func (c *FakeNamespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceLis | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *FakeNamespaces) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewRootWatchAction(namespacesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) { | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Create(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootPatchSubresourceAction(namespacesResource, name, data, subresources...), &v1.Namespace{}) | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &core_v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Namespace), err | ||||
| 	return obj.(*core_v1.Namespace), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Update(namespace *core_v1.Namespace) (result *core_v1.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &core_v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Namespace), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *core_v1.Namespace) (*core_v1.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &core_v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Namespace), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the namespace and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &core_v1.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &core_v1.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootPatchSubresourceAction(namespacesResource, name, data, subresources...), &core_v1.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Namespace), err | ||||
| } | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/core/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	core_v1 "k8s.io/api/core/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,53 +36,21 @@ var secretsResource = schema.GroupVersionResource{Group: "", Version: "v1", Reso | ||||
|  | ||||
| var secretsKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Secret"} | ||||
|  | ||||
| func (c *FakeSecrets) Create(secret *v1.Secret) (result *v1.Secret, err error) { | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *core_v1.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &v1.Secret{}) | ||||
| 		Invokes(testing.NewGetAction(secretsResource, c.ns, name), &core_v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Secret), err | ||||
| 	return obj.(*core_v1.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Update(secret *v1.Secret) (result *v1.Secret, err error) { | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *FakeSecrets) List(opts v1.ListOptions) (result *core_v1.SecretList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &v1.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Get(name string, options meta_v1.GetOptions) (result *v1.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(secretsResource, c.ns, name), &v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), &v1.SecretList{}) | ||||
| 		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), &core_v1.SecretList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -92,8 +60,8 @@ func (c *FakeSecrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.SecretList{} | ||||
| 	for _, item := range obj.(*v1.SecretList).Items { | ||||
| 	list := &core_v1.SecretList{} | ||||
| 	for _, item := range obj.(*core_v1.SecretList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -102,19 +70,57 @@ func (c *FakeSecrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *FakeSecrets) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(secretsResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) { | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Create(secret *core_v1.Secret) (result *core_v1.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(secretsResource, c.ns, name, data, subresources...), &v1.Secret{}) | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &core_v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Secret), err | ||||
| 	return obj.(*core_v1.Secret), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Update(secret *core_v1.Secret) (result *core_v1.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &core_v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Secret), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the secret and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &core_v1.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &core_v1.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(secretsResource, c.ns, name, data, subresources...), &core_v1.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Secret), err | ||||
| } | ||||
|   | ||||
| @@ -17,8 +17,8 @@ limitations under the License. | ||||
| package fake | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/api/core/v1" | ||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	core_v1 "k8s.io/api/core/v1" | ||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| 	labels "k8s.io/apimachinery/pkg/labels" | ||||
| 	schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| 	types "k8s.io/apimachinery/pkg/types" | ||||
| @@ -36,63 +36,21 @@ var servicesResource = schema.GroupVersionResource{Group: "", Version: "v1", Res | ||||
|  | ||||
| var servicesKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Service"} | ||||
|  | ||||
| func (c *FakeServices) Create(service *v1.Service) (result *v1.Service, err error) { | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *FakeServices) Get(name string, options v1.GetOptions) (result *core_v1.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &v1.Service{}) | ||||
| 		Invokes(testing.NewGetAction(servicesResource, c.ns, name), &core_v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Service), err | ||||
| 	return obj.(*core_v1.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Update(service *v1.Service) (result *v1.Service, err error) { | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *FakeServices) List(opts v1.ListOptions) (result *core_v1.ServiceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) UpdateStatus(service *v1.Service) (*v1.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Delete(name string, options *meta_v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &v1.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Get(name string, options meta_v1.GetOptions) (result *v1.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(servicesResource, c.ns, name), &v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) List(opts meta_v1.ListOptions) (result *v1.ServiceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(servicesResource, servicesKind, c.ns, opts), &v1.ServiceList{}) | ||||
| 		Invokes(testing.NewListAction(servicesResource, servicesKind, c.ns, opts), &core_v1.ServiceList{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| @@ -102,8 +60,8 @@ func (c *FakeServices) List(opts meta_v1.ListOptions) (result *v1.ServiceList, e | ||||
| 	if label == nil { | ||||
| 		label = labels.Everything() | ||||
| 	} | ||||
| 	list := &v1.ServiceList{} | ||||
| 	for _, item := range obj.(*v1.ServiceList).Items { | ||||
| 	list := &core_v1.ServiceList{} | ||||
| 	for _, item := range obj.(*core_v1.ServiceList).Items { | ||||
| 		if label.Matches(labels.Set(item.Labels)) { | ||||
| 			list.Items = append(list.Items, item) | ||||
| 		} | ||||
| @@ -112,19 +70,69 @@ func (c *FakeServices) List(opts meta_v1.ListOptions) (result *v1.ServiceList, e | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *FakeServices) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	return c.Fake. | ||||
| 		InvokesWatch(testing.NewWatchAction(servicesResource, c.ns, opts)) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) { | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Create(service *core_v1.Service) (result *core_v1.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &v1.Service{}) | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &core_v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1.Service), err | ||||
| 	return obj.(*core_v1.Service), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Update(service *core_v1.Service) (result *core_v1.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &core_v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Service), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeServices) UpdateStatus(service *core_v1.Service) (*core_v1.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &core_v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Service), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the service and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &core_v1.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &core_v1.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *core_v1.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &core_v1.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*core_v1.Service), err | ||||
| } | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newNamespaces(c *CoreV1Client) *namespaces { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options meta_v1.GetOptions) (result *v1.Namespace, err error) { | ||||
| 	result = &v1.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceList, err error) { | ||||
| 	result = &v1.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *namespaces) Create(namespace *v1.Namespace) (result *v1.Namespace, err error) { | ||||
| 	result = &v1.Namespace{} | ||||
| @@ -115,38 +147,6 @@ func (c *namespaces) DeleteCollection(options *meta_v1.DeleteOptions, listOption | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options meta_v1.GetOptions) (result *v1.Namespace, err error) { | ||||
| 	result = &v1.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceList, err error) { | ||||
| 	result = &v1.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *namespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) { | ||||
| 	result = &v1.Namespace{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newSecrets(c *CoreV1Client, namespace string) *secrets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options meta_v1.GetOptions) (result *v1.Secret, err error) { | ||||
| 	result = &v1.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err error) { | ||||
| 	result = &v1.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *secrets) Create(secret *v1.Secret) (result *v1.Secret, err error) { | ||||
| 	result = &v1.Secret{} | ||||
| @@ -105,41 +140,6 @@ func (c *secrets) DeleteCollection(options *meta_v1.DeleteOptions, listOptions m | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options meta_v1.GetOptions) (result *v1.Secret, err error) { | ||||
| 	result = &v1.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err error) { | ||||
| 	result = &v1.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *secrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) { | ||||
| 	result = &v1.Secret{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newServices(c *CoreV1Client, namespace string) *services { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options meta_v1.GetOptions) (result *v1.Service, err error) { | ||||
| 	result = &v1.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts meta_v1.ListOptions) (result *v1.ServiceList, err error) { | ||||
| 	result = &v1.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *services) Create(service *v1.Service) (result *v1.Service, err error) { | ||||
| 	result = &v1.Service{} | ||||
| @@ -122,41 +157,6 @@ func (c *services) DeleteCollection(options *meta_v1.DeleteOptions, listOptions | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options meta_v1.GetOptions) (result *v1.Service, err error) { | ||||
| 	result = &v1.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts meta_v1.ListOptions) (result *v1.ServiceList, err error) { | ||||
| 	result = &v1.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *services) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) { | ||||
| 	result = &v1.Service{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDaemonSets(c *ExtensionsV1beta1Client, namespace string) *daemonSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *v1beta1.DaemonSet, err error) { | ||||
| 	result = &v1beta1.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||
| 	result = &v1beta1.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *daemonSets) Create(daemonSet *v1beta1.DaemonSet) (result *v1beta1.DaemonSet, err error) { | ||||
| 	result = &v1beta1.DaemonSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *daemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *v1beta1.DaemonSet, err error) { | ||||
| 	result = &v1beta1.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||
| 	result = &v1beta1.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.DaemonSet, err error) { | ||||
| 	result = &v1beta1.DaemonSet{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDeployments(c *ExtensionsV1beta1Client, namespace string) *deployments { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | ||||
| 	result = &v1beta1.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||
| 	result = &v1beta1.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *deployments) Create(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) { | ||||
| 	result = &v1beta1.Deployment{} | ||||
| @@ -122,41 +157,6 @@ func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | ||||
| 	result = &v1beta1.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||
| 	result = &v1beta1.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) { | ||||
| 	result = &v1beta1.Deployment{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var daemonsetsResource = schema.GroupVersionResource{Group: "extensions", Versio | ||||
|  | ||||
| var daemonsetsKind = schema.GroupVersionKind{Group: "extensions", Version: "v1beta1", Kind: "DaemonSet"} | ||||
|  | ||||
| func (c *FakeDaemonSets) Create(daemonSet *v1beta1.DaemonSet) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Update(daemonSet *v1beta1.DaemonSet) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *v1beta1.DaemonSet) (*v1beta1.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), &v1beta1.DaemonSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *v1beta | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), &v1beta1.DaemonSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Create(daemonSet *v1beta1.DaemonSet) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Update(daemonSet *v1beta1.DaemonSet) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *v1beta1.DaemonSet) (*v1beta1.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the daemonSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &v1beta1.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var deploymentsResource = schema.GroupVersionResource{Group: "extensions", Versi | ||||
|  | ||||
| var deploymentsKind = schema.GroupVersionKind{Group: "extensions", Version: "v1beta1", Kind: "Deployment"} | ||||
|  | ||||
| func (c *FakeDeployments) Create(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Update(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *v1beta1.Deployment) (*v1beta1.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *v1bet | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *FakeDeployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), &v1beta1.DeploymentList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Create(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Update(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *v1beta1.Deployment) (*v1beta1.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Deployment), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the deployment and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var ingressesResource = schema.GroupVersionResource{Group: "extensions", Version | ||||
|  | ||||
| var ingressesKind = schema.GroupVersionKind{Group: "extensions", Version: "v1beta1", Kind: "Ingress"} | ||||
|  | ||||
| func (c *FakeIngresses) Create(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) Update(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) UpdateStatus(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(ingressesResource, c.ns, name), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(ingressesResource, c.ns, name), &v1beta1.Ingress{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *v1beta1 | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *FakeIngresses) List(opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(ingressesResource, ingressesKind, c.ns, opts), &v1beta1.IngressList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeIngresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a ingress and creates it.  Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *FakeIngresses) Create(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *FakeIngresses) Update(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeIngresses) UpdateStatus(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Ingress), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the ingress and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(ingressesResource, c.ns, name), &v1beta1.Ingress{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched ingress. | ||||
| func (c *FakeIngresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var replicasetsResource = schema.GroupVersionResource{Group: "extensions", Versi | ||||
|  | ||||
| var replicasetsKind = schema.GroupVersionKind{Group: "extensions", Version: "v1beta1", Kind: "ReplicaSet"} | ||||
|  | ||||
| func (c *FakeReplicaSets) Create(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) Update(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *v1bet | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), &v1beta1.ReplicaSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeReplicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *FakeReplicaSets) Create(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *FakeReplicaSets) Update(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeReplicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the replicaSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicaSet. | ||||
| func (c *FakeReplicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newIngresses(c *ExtensionsV1beta1Client, namespace string) *ingresses { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *ingresses) Get(name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | ||||
| 	result = &v1beta1.Ingress{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *ingresses) List(opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||
| 	result = &v1beta1.IngressList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested ingresses. | ||||
| func (c *ingresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a ingress and creates it.  Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *ingresses) Create(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) { | ||||
| 	result = &v1beta1.Ingress{} | ||||
| @@ -122,41 +157,6 @@ func (c *ingresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.L | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *ingresses) Get(name string, options v1.GetOptions) (result *v1beta1.Ingress, err error) { | ||||
| 	result = &v1beta1.Ingress{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *ingresses) List(opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||
| 	result = &v1beta1.IngressList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested ingresses. | ||||
| func (c *ingresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched ingress. | ||||
| func (c *ingresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error) { | ||||
| 	result = &v1beta1.Ingress{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newReplicaSets(c *ExtensionsV1beta1Client, namespace string) *replicaSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *replicaSets) Get(name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	result = &v1beta1.ReplicaSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *replicaSets) List(opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||
| 	result = &v1beta1.ReplicaSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | ||||
| func (c *replicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *replicaSets) Create(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	result = &v1beta1.ReplicaSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *replicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *replicaSets) Get(name string, options v1.GetOptions) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	result = &v1beta1.ReplicaSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *replicaSets) List(opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||
| 	result = &v1beta1.ReplicaSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | ||||
| func (c *replicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicaSet. | ||||
| func (c *replicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error) { | ||||
| 	result = &v1beta1.ReplicaSet{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newClusters(c *FederationV1beta1Client) *clusters { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *clusters) Get(name string, options v1.GetOptions) (result *v1beta1.Cluster, err error) { | ||||
| 	result = &v1beta1.Cluster{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *clusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, err error) { | ||||
| 	result = &v1beta1.ClusterList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested clusters. | ||||
| func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *clusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) { | ||||
| 	result = &v1beta1.Cluster{} | ||||
| @@ -115,38 +147,6 @@ func (c *clusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Li | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *clusters) Get(name string, options v1.GetOptions) (result *v1beta1.Cluster, err error) { | ||||
| 	result = &v1beta1.Cluster{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *clusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, err error) { | ||||
| 	result = &v1beta1.ClusterList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested clusters. | ||||
| func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cluster. | ||||
| func (c *clusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) { | ||||
| 	result = &v1beta1.Cluster{} | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var clustersResource = schema.GroupVersionResource{Group: "federation", Version: | ||||
|  | ||||
| var clustersKind = schema.GroupVersionKind{Group: "federation", Version: "v1beta1", Kind: "Cluster"} | ||||
|  | ||||
| func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(clustersResource, cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(clustersResource, cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) UpdateStatus(cluster *v1beta1.Cluster) (*v1beta1.Cluster, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(clustersResource, name), &v1beta1.Cluster{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(clustersResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ClusterList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(clustersResource, name), &v1beta1.Cluster{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1beta1. | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *FakeClusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(clustersResource, clustersKind, opts), &v1beta1.ClusterList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 		InvokesWatch(testing.NewRootWatchAction(clustersResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(clustersResource, cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(clustersResource, cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeClusters) UpdateStatus(cluster *v1beta1.Cluster) (*v1beta1.Cluster, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &v1beta1.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*v1beta1.Cluster), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the cluster and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(clustersResource, name), &v1beta1.Cluster{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(clustersResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &v1beta1.ClusterList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cluster. | ||||
| func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var horizontalpodautoscalersResource = schema.GroupVersionResource{Group: "autos | ||||
|  | ||||
| var horizontalpodautoscalersKind = schema.GroupVersionKind{Group: "autoscaling", Version: "", Kind: "HorizontalPodAutoscaler"} | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) ( | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interfa | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newHorizontalPodAutoscalers(c *AutoscalingClient, namespace string) *horizo | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| @@ -122,41 +157,6 @@ func (c *horizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, l | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *horizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var jobsResource = schema.GroupVersionResource{Group: "batch", Version: "", Reso | ||||
|  | ||||
| var jobsKind = schema.GroupVersionKind{Group: "batch", Version: "", Kind: "Job"} | ||||
|  | ||||
| func (c *FakeJobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Update(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) UpdateStatus(job *batch.Job) (*batch.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *batch.Job, e | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *FakeJobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(jobsResource, jobsKind, c.ns, opts), &batch.JobList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a job and updates it. Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Update(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeJobs) UpdateStatus(job *batch.Job) (*batch.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the job and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *FakeJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newJobs(c *BatchClient, namespace string) *jobs { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	result = &batch.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *jobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| @@ -122,41 +157,6 @@ func (c *jobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOp | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	result = &batch.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *jobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newConfigMaps(c *CoreClient, namespace string) *configMaps { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	result = &api.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *configMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| @@ -105,41 +140,6 @@ func (c *configMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	result = &api.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *configMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newEvents(c *CoreClient, namespace string) *events { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	result = &api.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *events) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| @@ -105,41 +140,6 @@ func (c *events) DeleteCollection(options *v1.DeleteOptions, listOptions v1.List | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	result = &api.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *events) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var configmapsResource = schema.GroupVersionResource{Group: "", Version: "", Res | ||||
|  | ||||
| var configmapsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ConfigMap"} | ||||
|  | ||||
| func (c *FakeConfigMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Update(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *api.Co | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), &api.ConfigMapList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Update(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the configMap and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var eventsResource = schema.GroupVersionResource{Group: "", Version: "", Resourc | ||||
|  | ||||
| var eventsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Event"} | ||||
|  | ||||
| func (c *FakeEvents) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Update(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &api.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), &api.Event{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *api.Event, | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *FakeEvents) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), &api.EventList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Update(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the event and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &api.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var namespacesResource = schema.GroupVersionResource{Group: "", Version: "", Res | ||||
|  | ||||
| var namespacesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Namespace"} | ||||
|  | ||||
| func (c *FakeNamespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Update(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *api.Namespace) (*api.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &api.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(namespacesResource, name), &api.Namespace{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *api.Na | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *FakeNamespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(namespacesResource, namespacesKind, opts), &api.NamespaceList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 		InvokesWatch(testing.NewRootWatchAction(namespacesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Update(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *api.Namespace) (*api.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the namespace and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &api.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var secretsResource = schema.GroupVersionResource{Group: "", Version: "", Resour | ||||
|  | ||||
| var secretsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Secret"} | ||||
|  | ||||
| func (c *FakeSecrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Update(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *api.Secre | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *FakeSecrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), &api.SecretList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Update(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the secret and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var servicesResource = schema.GroupVersionResource{Group: "", Version: "", Resou | ||||
|  | ||||
| var servicesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Service"} | ||||
|  | ||||
| func (c *FakeServices) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Update(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) UpdateStatus(service *api.Service) (*api.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &api.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *FakeServices) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(servicesResource, c.ns, name), &api.Service{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeServices) Get(name string, options v1.GetOptions) (result *api.Serv | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *FakeServices) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(servicesResource, servicesKind, c.ns, opts), &api.ServiceList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Update(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeServices) UpdateStatus(service *api.Service) (*api.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the service and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &api.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newNamespaces(c *CoreClient) *namespaces { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	result = &api.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *namespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| @@ -115,38 +147,6 @@ func (c *namespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	result = &api.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *namespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newSecrets(c *CoreClient, namespace string) *secrets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	result = &api.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *secrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| @@ -105,41 +140,6 @@ func (c *secrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Lis | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	result = &api.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *secrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newServices(c *CoreClient, namespace string) *services { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	result = &api.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *services) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| @@ -122,41 +157,6 @@ func (c *services) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Li | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	result = &api.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *services) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDaemonSets(c *ExtensionsClient, namespace string) *daemonSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	result = &extensions.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *daemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *daemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	result = &extensions.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDeployments(c *ExtensionsClient, namespace string) *deployments { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	result = &extensions.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *deployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| @@ -122,41 +157,6 @@ func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	result = &extensions.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var daemonsetsResource = schema.GroupVersionResource{Group: "extensions", Versio | ||||
|  | ||||
| var daemonsetsKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "DaemonSet"} | ||||
|  | ||||
| func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extens | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), &extensions.DaemonSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the daemonSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var deploymentsResource = schema.GroupVersionResource{Group: "extensions", Versi | ||||
|  | ||||
| var deploymentsKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "Deployment"} | ||||
|  | ||||
| func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *exten | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *FakeDeployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), &extensions.DeploymentList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the deployment and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var ingressesResource = schema.GroupVersionResource{Group: "extensions", Version | ||||
|  | ||||
| var ingressesKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "Ingress"} | ||||
|  | ||||
| func (c *FakeIngresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(ingressesResource, c.ns, name), &extensions.Ingress{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.IngressList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(ingressesResource, c.ns, name), &extensions.Ingress{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *extensi | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *FakeIngresses) List(opts v1.ListOptions) (result *extensions.IngressList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(ingressesResource, ingressesKind, c.ns, opts), &extensions.IngressList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeIngresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a ingress and creates it.  Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *FakeIngresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(ingressesResource, c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *FakeIngresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(ingressesResource, c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeIngresses) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), &extensions.Ingress{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Ingress), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the ingress and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(ingressesResource, c.ns, name), &extensions.Ingress{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.IngressList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched ingress. | ||||
| func (c *FakeIngresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var replicasetsResource = schema.GroupVersionResource{Group: "extensions", Versi | ||||
|  | ||||
| var replicasetsKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "ReplicaSet"} | ||||
|  | ||||
| func (c *FakeReplicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) Update(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) UpdateStatus(replicaSet *extensions.ReplicaSet) (*extensions.ReplicaSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.ReplicaSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), &extensions.ReplicaSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *exten | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), &extensions.ReplicaSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeReplicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *FakeReplicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *FakeReplicaSets) Update(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeReplicaSets) UpdateStatus(replicaSet *extensions.ReplicaSet) (*extensions.ReplicaSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.ReplicaSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the replicaSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &extensions.ReplicaSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.ReplicaSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicaSet. | ||||
| func (c *FakeReplicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newIngresses(c *ExtensionsClient, namespace string) *ingresses { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *ingresses) Get(name string, options v1.GetOptions) (result *extensions.Ingress, err error) { | ||||
| 	result = &extensions.Ingress{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *ingresses) List(opts v1.ListOptions) (result *extensions.IngressList, err error) { | ||||
| 	result = &extensions.IngressList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested ingresses. | ||||
| func (c *ingresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a ingress and creates it.  Returns the server's representation of the ingress, and an error, if there is any. | ||||
| func (c *ingresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { | ||||
| 	result = &extensions.Ingress{} | ||||
| @@ -122,41 +157,6 @@ func (c *ingresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.L | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. | ||||
| func (c *ingresses) Get(name string, options v1.GetOptions) (result *extensions.Ingress, err error) { | ||||
| 	result = &extensions.Ingress{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||
| func (c *ingresses) List(opts v1.ListOptions) (result *extensions.IngressList, err error) { | ||||
| 	result = &extensions.IngressList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested ingresses. | ||||
| func (c *ingresses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("ingresses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched ingress. | ||||
| func (c *ingresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error) { | ||||
| 	result = &extensions.Ingress{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newReplicaSets(c *ExtensionsClient, namespace string) *replicaSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *replicaSets) Get(name string, options v1.GetOptions) (result *extensions.ReplicaSet, err error) { | ||||
| 	result = &extensions.ReplicaSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *replicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaSetList, err error) { | ||||
| 	result = &extensions.ReplicaSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | ||||
| func (c *replicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any. | ||||
| func (c *replicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error) { | ||||
| 	result = &extensions.ReplicaSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *replicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any. | ||||
| func (c *replicaSets) Get(name string, options v1.GetOptions) (result *extensions.ReplicaSet, err error) { | ||||
| 	result = &extensions.ReplicaSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||
| func (c *replicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaSetList, err error) { | ||||
| 	result = &extensions.ReplicaSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicaSets. | ||||
| func (c *replicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicasets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicaSet. | ||||
| func (c *replicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error) { | ||||
| 	result = &extensions.ReplicaSet{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newClusters(c *FederationClient) *clusters { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *clusters) Get(name string, options v1.GetOptions) (result *federation.Cluster, err error) { | ||||
| 	result = &federation.Cluster{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *clusters) List(opts v1.ListOptions) (result *federation.ClusterList, err error) { | ||||
| 	result = &federation.ClusterList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested clusters. | ||||
| func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *clusters) Create(cluster *federation.Cluster) (result *federation.Cluster, err error) { | ||||
| 	result = &federation.Cluster{} | ||||
| @@ -115,38 +147,6 @@ func (c *clusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Li | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *clusters) Get(name string, options v1.GetOptions) (result *federation.Cluster, err error) { | ||||
| 	result = &federation.Cluster{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *clusters) List(opts v1.ListOptions) (result *federation.ClusterList, err error) { | ||||
| 	result = &federation.ClusterList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested clusters. | ||||
| func (c *clusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("clusters"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cluster. | ||||
| func (c *clusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) { | ||||
| 	result = &federation.Cluster{} | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var clustersResource = schema.GroupVersionResource{Group: "federation", Version: | ||||
|  | ||||
| var clustersKind = schema.GroupVersionKind{Group: "federation", Version: "", Kind: "Cluster"} | ||||
|  | ||||
| func (c *FakeClusters) Create(cluster *federation.Cluster) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(clustersResource, cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) Update(cluster *federation.Cluster) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(clustersResource, cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) UpdateStatus(cluster *federation.Cluster) (*federation.Cluster, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(clustersResource, name), &federation.Cluster{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(clustersResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &federation.ClusterList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. | ||||
| func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(clustersResource, name), &federation.Cluster{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *federati | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Clusters that match those selectors. | ||||
| func (c *FakeClusters) List(opts v1.ListOptions) (result *federation.ClusterList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(clustersResource, clustersKind, opts), &federation.ClusterList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 		InvokesWatch(testing.NewRootWatchAction(clustersResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *FakeClusters) Create(cluster *federation.Cluster) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(clustersResource, cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. | ||||
| func (c *FakeClusters) Update(cluster *federation.Cluster) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(clustersResource, cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeClusters) UpdateStatus(cluster *federation.Cluster) (*federation.Cluster, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &federation.Cluster{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*federation.Cluster), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the cluster and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(clustersResource, name), &federation.Cluster{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(clustersResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &federation.ClusterList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cluster. | ||||
| func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *federation.Cluster, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -56,6 +56,38 @@ func newExternalAdmissionHookConfigurations(c *AdmissionregistrationClient) *ext | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the externalAdmissionHookConfiguration, and returns the corresponding externalAdmissionHookConfiguration object, and an error if there is any. | ||||
| func (c *externalAdmissionHookConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfiguration{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ExternalAdmissionHookConfigurations that match those selectors. | ||||
| func (c *externalAdmissionHookConfigurations) List(opts v1.ListOptions) (result *admissionregistration.ExternalAdmissionHookConfigurationList, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfigurationList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested externalAdmissionHookConfigurations. | ||||
| func (c *externalAdmissionHookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a externalAdmissionHookConfiguration and creates it.  Returns the server's representation of the externalAdmissionHookConfiguration, and an error, if there is any. | ||||
| func (c *externalAdmissionHookConfigurations) Create(externalAdmissionHookConfiguration *admissionregistration.ExternalAdmissionHookConfiguration) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfiguration{} | ||||
| @@ -99,38 +131,6 @@ func (c *externalAdmissionHookConfigurations) DeleteCollection(options *v1.Delet | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the externalAdmissionHookConfiguration, and returns the corresponding externalAdmissionHookConfiguration object, and an error if there is any. | ||||
| func (c *externalAdmissionHookConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfiguration{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ExternalAdmissionHookConfigurations that match those selectors. | ||||
| func (c *externalAdmissionHookConfigurations) List(opts v1.ListOptions) (result *admissionregistration.ExternalAdmissionHookConfigurationList, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfigurationList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested externalAdmissionHookConfigurations. | ||||
| func (c *externalAdmissionHookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("externaladmissionhookconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched externalAdmissionHookConfiguration. | ||||
| func (c *externalAdmissionHookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	result = &admissionregistration.ExternalAdmissionHookConfiguration{} | ||||
|   | ||||
| @@ -35,37 +35,7 @@ var externaladmissionhookconfigurationsResource = schema.GroupVersionResource{Gr | ||||
|  | ||||
| var externaladmissionhookconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "", Kind: "ExternalAdmissionHookConfiguration"} | ||||
|  | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Create(externalAdmissionHookConfiguration *admissionregistration.ExternalAdmissionHookConfiguration) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(externaladmissionhookconfigurationsResource, externalAdmissionHookConfiguration), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.ExternalAdmissionHookConfiguration), err | ||||
| } | ||||
|  | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Update(externalAdmissionHookConfiguration *admissionregistration.ExternalAdmissionHookConfiguration) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(externaladmissionhookconfigurationsResource, externalAdmissionHookConfiguration), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.ExternalAdmissionHookConfiguration), err | ||||
| } | ||||
|  | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(externaladmissionhookconfigurationsResource, name), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeExternalAdmissionHookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(externaladmissionhookconfigurationsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &admissionregistration.ExternalAdmissionHookConfigurationList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the externalAdmissionHookConfiguration, and returns the corresponding externalAdmissionHookConfiguration object, and an error if there is any. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(externaladmissionhookconfigurationsResource, name), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| @@ -75,6 +45,7 @@ func (c *FakeExternalAdmissionHookConfigurations) Get(name string, options v1.Ge | ||||
| 	return obj.(*admissionregistration.ExternalAdmissionHookConfiguration), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ExternalAdmissionHookConfigurations that match those selectors. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) List(opts v1.ListOptions) (result *admissionregistration.ExternalAdmissionHookConfigurationList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(externaladmissionhookconfigurationsResource, externaladmissionhookconfigurationsKind, opts), &admissionregistration.ExternalAdmissionHookConfigurationList{}) | ||||
| @@ -101,6 +72,41 @@ func (c *FakeExternalAdmissionHookConfigurations) Watch(opts v1.ListOptions) (wa | ||||
| 		InvokesWatch(testing.NewRootWatchAction(externaladmissionhookconfigurationsResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a externalAdmissionHookConfiguration and creates it.  Returns the server's representation of the externalAdmissionHookConfiguration, and an error, if there is any. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Create(externalAdmissionHookConfiguration *admissionregistration.ExternalAdmissionHookConfiguration) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(externaladmissionhookconfigurationsResource, externalAdmissionHookConfiguration), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.ExternalAdmissionHookConfiguration), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a externalAdmissionHookConfiguration and updates it. Returns the server's representation of the externalAdmissionHookConfiguration, and an error, if there is any. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Update(externalAdmissionHookConfiguration *admissionregistration.ExternalAdmissionHookConfiguration) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(externaladmissionhookconfigurationsResource, externalAdmissionHookConfiguration), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.ExternalAdmissionHookConfiguration), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the externalAdmissionHookConfiguration and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(externaladmissionhookconfigurationsResource, name), &admissionregistration.ExternalAdmissionHookConfiguration{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(externaladmissionhookconfigurationsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &admissionregistration.ExternalAdmissionHookConfigurationList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched externalAdmissionHookConfiguration. | ||||
| func (c *FakeExternalAdmissionHookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistration.ExternalAdmissionHookConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -35,37 +35,7 @@ var initializerconfigurationsResource = schema.GroupVersionResource{Group: "admi | ||||
|  | ||||
| var initializerconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "", Kind: "InitializerConfiguration"} | ||||
|  | ||||
| func (c *FakeInitializerConfigurations) Create(initializerConfiguration *admissionregistration.InitializerConfiguration) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(initializerconfigurationsResource, initializerConfiguration), &admissionregistration.InitializerConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.InitializerConfiguration), err | ||||
| } | ||||
|  | ||||
| func (c *FakeInitializerConfigurations) Update(initializerConfiguration *admissionregistration.InitializerConfiguration) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(initializerconfigurationsResource, initializerConfiguration), &admissionregistration.InitializerConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.InitializerConfiguration), err | ||||
| } | ||||
|  | ||||
| func (c *FakeInitializerConfigurations) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(initializerconfigurationsResource, name), &admissionregistration.InitializerConfiguration{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeInitializerConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(initializerconfigurationsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &admissionregistration.InitializerConfigurationList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the initializerConfiguration, and returns the corresponding initializerConfiguration object, and an error if there is any. | ||||
| func (c *FakeInitializerConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(initializerconfigurationsResource, name), &admissionregistration.InitializerConfiguration{}) | ||||
| @@ -75,6 +45,7 @@ func (c *FakeInitializerConfigurations) Get(name string, options v1.GetOptions) | ||||
| 	return obj.(*admissionregistration.InitializerConfiguration), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of InitializerConfigurations that match those selectors. | ||||
| func (c *FakeInitializerConfigurations) List(opts v1.ListOptions) (result *admissionregistration.InitializerConfigurationList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(initializerconfigurationsResource, initializerconfigurationsKind, opts), &admissionregistration.InitializerConfigurationList{}) | ||||
| @@ -101,6 +72,41 @@ func (c *FakeInitializerConfigurations) Watch(opts v1.ListOptions) (watch.Interf | ||||
| 		InvokesWatch(testing.NewRootWatchAction(initializerconfigurationsResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a initializerConfiguration and creates it.  Returns the server's representation of the initializerConfiguration, and an error, if there is any. | ||||
| func (c *FakeInitializerConfigurations) Create(initializerConfiguration *admissionregistration.InitializerConfiguration) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(initializerconfigurationsResource, initializerConfiguration), &admissionregistration.InitializerConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.InitializerConfiguration), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a initializerConfiguration and updates it. Returns the server's representation of the initializerConfiguration, and an error, if there is any. | ||||
| func (c *FakeInitializerConfigurations) Update(initializerConfiguration *admissionregistration.InitializerConfiguration) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(initializerconfigurationsResource, initializerConfiguration), &admissionregistration.InitializerConfiguration{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*admissionregistration.InitializerConfiguration), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the initializerConfiguration and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeInitializerConfigurations) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(initializerconfigurationsResource, name), &admissionregistration.InitializerConfiguration{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeInitializerConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(initializerconfigurationsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &admissionregistration.InitializerConfigurationList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched initializerConfiguration. | ||||
| func (c *FakeInitializerConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -56,6 +56,38 @@ func newInitializerConfigurations(c *AdmissionregistrationClient) *initializerCo | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the initializerConfiguration, and returns the corresponding initializerConfiguration object, and an error if there is any. | ||||
| func (c *initializerConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	result = &admissionregistration.InitializerConfiguration{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of InitializerConfigurations that match those selectors. | ||||
| func (c *initializerConfigurations) List(opts v1.ListOptions) (result *admissionregistration.InitializerConfigurationList, err error) { | ||||
| 	result = &admissionregistration.InitializerConfigurationList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested initializerConfigurations. | ||||
| func (c *initializerConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a initializerConfiguration and creates it.  Returns the server's representation of the initializerConfiguration, and an error, if there is any. | ||||
| func (c *initializerConfigurations) Create(initializerConfiguration *admissionregistration.InitializerConfiguration) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	result = &admissionregistration.InitializerConfiguration{} | ||||
| @@ -99,38 +131,6 @@ func (c *initializerConfigurations) DeleteCollection(options *v1.DeleteOptions, | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the initializerConfiguration, and returns the corresponding initializerConfiguration object, and an error if there is any. | ||||
| func (c *initializerConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	result = &admissionregistration.InitializerConfiguration{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of InitializerConfigurations that match those selectors. | ||||
| func (c *initializerConfigurations) List(opts v1.ListOptions) (result *admissionregistration.InitializerConfigurationList, err error) { | ||||
| 	result = &admissionregistration.InitializerConfigurationList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested initializerConfigurations. | ||||
| func (c *initializerConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("initializerconfigurations"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched initializerConfiguration. | ||||
| func (c *initializerConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistration.InitializerConfiguration, err error) { | ||||
| 	result = &admissionregistration.InitializerConfiguration{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newControllerRevisions(c *AppsClient, namespace string) *controllerRevision | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any. | ||||
| func (c *controllerRevisions) Get(name string, options v1.GetOptions) (result *apps.ControllerRevision, err error) { | ||||
| 	result = &apps.ControllerRevision{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||
| func (c *controllerRevisions) List(opts v1.ListOptions) (result *apps.ControllerRevisionList, err error) { | ||||
| 	result = &apps.ControllerRevisionList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested controllerRevisions. | ||||
| func (c *controllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any. | ||||
| func (c *controllerRevisions) Create(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error) { | ||||
| 	result = &apps.ControllerRevision{} | ||||
| @@ -105,41 +140,6 @@ func (c *controllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOp | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any. | ||||
| func (c *controllerRevisions) Get(name string, options v1.GetOptions) (result *apps.ControllerRevision, err error) { | ||||
| 	result = &apps.ControllerRevision{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||
| func (c *controllerRevisions) List(opts v1.ListOptions) (result *apps.ControllerRevisionList, err error) { | ||||
| 	result = &apps.ControllerRevisionList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested controllerRevisions. | ||||
| func (c *controllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("controllerrevisions"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched controllerRevision. | ||||
| func (c *controllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.ControllerRevision, err error) { | ||||
| 	result = &apps.ControllerRevision{} | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var controllerrevisionsResource = schema.GroupVersionResource{Group: "apps", Ver | ||||
|  | ||||
| var controllerrevisionsKind = schema.GroupVersionKind{Group: "apps", Version: "", Kind: "ControllerRevision"} | ||||
|  | ||||
| func (c *FakeControllerRevisions) Create(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.ControllerRevision), err | ||||
| } | ||||
|  | ||||
| func (c *FakeControllerRevisions) Update(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.ControllerRevision), err | ||||
| } | ||||
|  | ||||
| func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(controllerrevisionsResource, c.ns, name), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &apps.ControllerRevisionList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any. | ||||
| func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), &apps.ControllerRevision{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (resul | ||||
| 	return obj.(*apps.ControllerRevision), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||
| func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *apps.ControllerRevisionList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), &apps.ControllerRevisionList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeControllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, e | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any. | ||||
| func (c *FakeControllerRevisions) Create(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.ControllerRevision), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any. | ||||
| func (c *FakeControllerRevisions) Update(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.ControllerRevision), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(controllerrevisionsResource, c.ns, name), &apps.ControllerRevision{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &apps.ControllerRevisionList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched controllerRevision. | ||||
| func (c *FakeControllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.ControllerRevision, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var statefulsetsResource = schema.GroupVersionResource{Group: "apps", Version: " | ||||
|  | ||||
| var statefulsetsKind = schema.GroupVersionKind{Group: "apps", Version: "", Kind: "StatefulSet"} | ||||
|  | ||||
| func (c *FakeStatefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeStatefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (*apps.StatefulSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(statefulsetsResource, c.ns, name), &apps.StatefulSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &apps.StatefulSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any. | ||||
| func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), &apps.StatefulSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *apps | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||
| func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), &apps.StatefulSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any. | ||||
| func (c *FakeStatefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any. | ||||
| func (c *FakeStatefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (*apps.StatefulSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &apps.StatefulSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*apps.StatefulSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the statefulSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(statefulsetsResource, c.ns, name), &apps.StatefulSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &apps.StatefulSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched statefulSet. | ||||
| func (c *FakeStatefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newStatefulSets(c *AppsClient, namespace string) *statefulSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any. | ||||
| func (c *statefulSets) Get(name string, options v1.GetOptions) (result *apps.StatefulSet, err error) { | ||||
| 	result = &apps.StatefulSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||
| func (c *statefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetList, err error) { | ||||
| 	result = &apps.StatefulSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested statefulSets. | ||||
| func (c *statefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any. | ||||
| func (c *statefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error) { | ||||
| 	result = &apps.StatefulSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *statefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any. | ||||
| func (c *statefulSets) Get(name string, options v1.GetOptions) (result *apps.StatefulSet, err error) { | ||||
| 	result = &apps.StatefulSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||
| func (c *statefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetList, err error) { | ||||
| 	result = &apps.StatefulSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested statefulSets. | ||||
| func (c *statefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("statefulsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched statefulSet. | ||||
| func (c *statefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error) { | ||||
| 	result = &apps.StatefulSet{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var horizontalpodautoscalersResource = schema.GroupVersionResource{Group: "autos | ||||
|  | ||||
| var horizontalpodautoscalersKind = schema.GroupVersionKind{Group: "autoscaling", Version: "", Kind: "HorizontalPodAutoscaler"} | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) ( | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interfa | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*autoscaling.HorizontalPodAutoscaler), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &autoscaling.HorizontalPodAutoscaler{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &autoscaling.HorizontalPodAutoscalerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newHorizontalPodAutoscalers(c *AutoscalingClient, namespace string) *horizo | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a horizontalPodAutoscaler and creates it.  Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. | ||||
| func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| @@ -122,41 +157,6 @@ func (c *horizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, l | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. | ||||
| func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||
| func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *autoscaling.HorizontalPodAutoscalerList, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscalerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. | ||||
| func (c *horizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("horizontalpodautoscalers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched horizontalPodAutoscaler. | ||||
| func (c *horizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscaling.HorizontalPodAutoscaler, err error) { | ||||
| 	result = &autoscaling.HorizontalPodAutoscaler{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newCronJobs(c *BatchClient, namespace string) *cronJobs { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the cronJob, and returns the corresponding cronJob object, and an error if there is any. | ||||
| func (c *cronJobs) Get(name string, options v1.GetOptions) (result *batch.CronJob, err error) { | ||||
| 	result = &batch.CronJob{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||
| func (c *cronJobs) List(opts v1.ListOptions) (result *batch.CronJobList, err error) { | ||||
| 	result = &batch.CronJobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested cronJobs. | ||||
| func (c *cronJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cronJob and creates it.  Returns the server's representation of the cronJob, and an error, if there is any. | ||||
| func (c *cronJobs) Create(cronJob *batch.CronJob) (result *batch.CronJob, err error) { | ||||
| 	result = &batch.CronJob{} | ||||
| @@ -122,41 +157,6 @@ func (c *cronJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Li | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the cronJob, and returns the corresponding cronJob object, and an error if there is any. | ||||
| func (c *cronJobs) Get(name string, options v1.GetOptions) (result *batch.CronJob, err error) { | ||||
| 	result = &batch.CronJob{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||
| func (c *cronJobs) List(opts v1.ListOptions) (result *batch.CronJobList, err error) { | ||||
| 	result = &batch.CronJobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested cronJobs. | ||||
| func (c *cronJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("cronjobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cronJob. | ||||
| func (c *cronJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.CronJob, err error) { | ||||
| 	result = &batch.CronJob{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var cronjobsResource = schema.GroupVersionResource{Group: "batch", Version: "", | ||||
|  | ||||
| var cronjobsKind = schema.GroupVersionKind{Group: "batch", Version: "", Kind: "CronJob"} | ||||
|  | ||||
| func (c *FakeCronJobs) Create(cronJob *batch.CronJob) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(cronjobsResource, c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCronJobs) Update(cronJob *batch.CronJob) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(cronjobsResource, c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCronJobs) UpdateStatus(cronJob *batch.CronJob) (*batch.CronJob, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(cronjobsResource, "status", c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCronJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(cronjobsResource, c.ns, name), &batch.CronJob{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeCronJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(cronjobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.CronJobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the cronJob, and returns the corresponding cronJob object, and an error if there is any. | ||||
| func (c *FakeCronJobs) Get(name string, options v1.GetOptions) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(cronjobsResource, c.ns, name), &batch.CronJob{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeCronJobs) Get(name string, options v1.GetOptions) (result *batch.Cr | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||
| func (c *FakeCronJobs) List(opts v1.ListOptions) (result *batch.CronJobList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(cronjobsResource, cronjobsKind, c.ns, opts), &batch.CronJobList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeCronJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a cronJob and creates it.  Returns the server's representation of the cronJob, and an error, if there is any. | ||||
| func (c *FakeCronJobs) Create(cronJob *batch.CronJob) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(cronjobsResource, c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a cronJob and updates it. Returns the server's representation of the cronJob, and an error, if there is any. | ||||
| func (c *FakeCronJobs) Update(cronJob *batch.CronJob) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(cronjobsResource, c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeCronJobs) UpdateStatus(cronJob *batch.CronJob) (*batch.CronJob, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(cronjobsResource, "status", c.ns, cronJob), &batch.CronJob{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.CronJob), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the cronJob and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeCronJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(cronjobsResource, c.ns, name), &batch.CronJob{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeCronJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(cronjobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.CronJobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched cronJob. | ||||
| func (c *FakeCronJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.CronJob, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var jobsResource = schema.GroupVersionResource{Group: "batch", Version: "", Reso | ||||
|  | ||||
| var jobsKind = schema.GroupVersionKind{Group: "batch", Version: "", Kind: "Job"} | ||||
|  | ||||
| func (c *FakeJobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Update(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) UpdateStatus(job *batch.Job) (*batch.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *batch.Job, e | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *FakeJobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(jobsResource, jobsKind, c.ns, opts), &batch.JobList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a job and updates it. Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *FakeJobs) Update(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(jobsResource, c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeJobs) UpdateStatus(job *batch.Job) (*batch.Job, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(jobsResource, "status", c.ns, job), &batch.Job{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*batch.Job), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the job and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeJobs) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(jobsResource, c.ns, name), &batch.Job{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(jobsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &batch.JobList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *FakeJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newJobs(c *BatchClient, namespace string) *jobs { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	result = &batch.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a job and creates it.  Returns the server's representation of the job, and an error, if there is any. | ||||
| func (c *jobs) Create(job *batch.Job) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| @@ -122,41 +157,6 @@ func (c *jobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOp | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the job, and returns the corresponding job object, and an error if there is any. | ||||
| func (c *jobs) Get(name string, options v1.GetOptions) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||
| func (c *jobs) List(opts v1.ListOptions) (result *batch.JobList, err error) { | ||||
| 	result = &batch.JobList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested jobs. | ||||
| func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("jobs"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched job. | ||||
| func (c *jobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *batch.Job, err error) { | ||||
| 	result = &batch.Job{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newCertificateSigningRequests(c *CertificatesClient) *certificateSigningReq | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the certificateSigningRequest, and returns the corresponding certificateSigningRequest object, and an error if there is any. | ||||
| func (c *certificateSigningRequests) Get(name string, options v1.GetOptions) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	result = &certificates.CertificateSigningRequest{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||
| func (c *certificateSigningRequests) List(opts v1.ListOptions) (result *certificates.CertificateSigningRequestList, err error) { | ||||
| 	result = &certificates.CertificateSigningRequestList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | ||||
| func (c *certificateSigningRequests) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | ||||
| func (c *certificateSigningRequests) Create(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	result = &certificates.CertificateSigningRequest{} | ||||
| @@ -115,38 +147,6 @@ func (c *certificateSigningRequests) DeleteCollection(options *v1.DeleteOptions, | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the certificateSigningRequest, and returns the corresponding certificateSigningRequest object, and an error if there is any. | ||||
| func (c *certificateSigningRequests) Get(name string, options v1.GetOptions) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	result = &certificates.CertificateSigningRequest{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||
| func (c *certificateSigningRequests) List(opts v1.ListOptions) (result *certificates.CertificateSigningRequestList, err error) { | ||||
| 	result = &certificates.CertificateSigningRequestList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested certificateSigningRequests. | ||||
| func (c *certificateSigningRequests) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("certificatesigningrequests"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched certificateSigningRequest. | ||||
| func (c *certificateSigningRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	result = &certificates.CertificateSigningRequest{} | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var certificatesigningrequestsResource = schema.GroupVersionResource{Group: "cer | ||||
|  | ||||
| var certificatesigningrequestsKind = schema.GroupVersionKind{Group: "certificates.k8s.io", Version: "", Kind: "CertificateSigningRequest"} | ||||
|  | ||||
| func (c *FakeCertificateSigningRequests) Create(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(certificatesigningrequestsResource, certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCertificateSigningRequests) Update(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(certificatesigningrequestsResource, certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCertificateSigningRequests) UpdateStatus(certificateSigningRequest *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "status", certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| func (c *FakeCertificateSigningRequests) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(certificatesigningrequestsResource, name), &certificates.CertificateSigningRequest{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeCertificateSigningRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(certificatesigningrequestsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &certificates.CertificateSigningRequestList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the certificateSigningRequest, and returns the corresponding certificateSigningRequest object, and an error if there is any. | ||||
| func (c *FakeCertificateSigningRequests) Get(name string, options v1.GetOptions) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(certificatesigningrequestsResource, name), &certificates.CertificateSigningRequest{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeCertificateSigningRequests) Get(name string, options v1.GetOptions) | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||
| func (c *FakeCertificateSigningRequests) List(opts v1.ListOptions) (result *certificates.CertificateSigningRequestList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(certificatesigningrequestsResource, certificatesigningrequestsKind, opts), &certificates.CertificateSigningRequestList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeCertificateSigningRequests) Watch(opts v1.ListOptions) (watch.Inter | ||||
| 		InvokesWatch(testing.NewRootWatchAction(certificatesigningrequestsResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a certificateSigningRequest and creates it.  Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | ||||
| func (c *FakeCertificateSigningRequests) Create(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(certificatesigningrequestsResource, certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a certificateSigningRequest and updates it. Returns the server's representation of the certificateSigningRequest, and an error, if there is any. | ||||
| func (c *FakeCertificateSigningRequests) Update(certificateSigningRequest *certificates.CertificateSigningRequest) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(certificatesigningrequestsResource, certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeCertificateSigningRequests) UpdateStatus(certificateSigningRequest *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(certificatesigningrequestsResource, "status", certificateSigningRequest), &certificates.CertificateSigningRequest{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*certificates.CertificateSigningRequest), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the certificateSigningRequest and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeCertificateSigningRequests) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(certificatesigningrequestsResource, name), &certificates.CertificateSigningRequest{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeCertificateSigningRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(certificatesigningrequestsResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &certificates.CertificateSigningRequestList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched certificateSigningRequest. | ||||
| func (c *FakeCertificateSigningRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *certificates.CertificateSigningRequest, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -56,6 +56,38 @@ func newComponentStatuses(c *CoreClient) *componentStatuses { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any. | ||||
| func (c *componentStatuses) Get(name string, options v1.GetOptions) (result *api.ComponentStatus, err error) { | ||||
| 	result = &api.ComponentStatus{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | ||||
| func (c *componentStatuses) List(opts v1.ListOptions) (result *api.ComponentStatusList, err error) { | ||||
| 	result = &api.ComponentStatusList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested componentStatuses. | ||||
| func (c *componentStatuses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a componentStatus and creates it.  Returns the server's representation of the componentStatus, and an error, if there is any. | ||||
| func (c *componentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { | ||||
| 	result = &api.ComponentStatus{} | ||||
| @@ -99,38 +131,6 @@ func (c *componentStatuses) DeleteCollection(options *v1.DeleteOptions, listOpti | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any. | ||||
| func (c *componentStatuses) Get(name string, options v1.GetOptions) (result *api.ComponentStatus, err error) { | ||||
| 	result = &api.ComponentStatus{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | ||||
| func (c *componentStatuses) List(opts v1.ListOptions) (result *api.ComponentStatusList, err error) { | ||||
| 	result = &api.ComponentStatusList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested componentStatuses. | ||||
| func (c *componentStatuses) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("componentstatuses"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched componentStatus. | ||||
| func (c *componentStatuses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) { | ||||
| 	result = &api.ComponentStatus{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newConfigMaps(c *CoreClient, namespace string) *configMaps { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	result = &api.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *configMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| @@ -105,41 +140,6 @@ func (c *configMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *configMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *configMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	result = &api.ConfigMapList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested configMaps. | ||||
| func (c *configMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("configmaps"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *configMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) { | ||||
| 	result = &api.ConfigMap{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newEndpoints(c *CoreClient, namespace string) *endpoints { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the endpoints, and returns the corresponding endpoints object, and an error if there is any. | ||||
| func (c *endpoints) Get(name string, options v1.GetOptions) (result *api.Endpoints, err error) { | ||||
| 	result = &api.Endpoints{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Endpoints that match those selectors. | ||||
| func (c *endpoints) List(opts v1.ListOptions) (result *api.EndpointsList, err error) { | ||||
| 	result = &api.EndpointsList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested endpoints. | ||||
| func (c *endpoints) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a endpoints and creates it.  Returns the server's representation of the endpoints, and an error, if there is any. | ||||
| func (c *endpoints) Create(endpoints *api.Endpoints) (result *api.Endpoints, err error) { | ||||
| 	result = &api.Endpoints{} | ||||
| @@ -105,41 +140,6 @@ func (c *endpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.L | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the endpoints, and returns the corresponding endpoints object, and an error if there is any. | ||||
| func (c *endpoints) Get(name string, options v1.GetOptions) (result *api.Endpoints, err error) { | ||||
| 	result = &api.Endpoints{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Endpoints that match those selectors. | ||||
| func (c *endpoints) List(opts v1.ListOptions) (result *api.EndpointsList, err error) { | ||||
| 	result = &api.EndpointsList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested endpoints. | ||||
| func (c *endpoints) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("endpoints"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched endpoints. | ||||
| func (c *endpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) { | ||||
| 	result = &api.Endpoints{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newEvents(c *CoreClient, namespace string) *events { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	result = &api.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *events) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| @@ -105,41 +140,6 @@ func (c *events) DeleteCollection(options *v1.DeleteOptions, listOptions v1.List | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *events) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *events) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	result = &api.EventList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested events. | ||||
| func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("events"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *events) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { | ||||
| 	result = &api.Event{} | ||||
|   | ||||
| @@ -35,37 +35,7 @@ var componentstatusesResource = schema.GroupVersionResource{Group: "", Version: | ||||
|  | ||||
| var componentstatusesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ComponentStatus"} | ||||
|  | ||||
| func (c *FakeComponentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(componentstatusesResource, componentStatus), &api.ComponentStatus{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ComponentStatus), err | ||||
| } | ||||
|  | ||||
| func (c *FakeComponentStatuses) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(componentstatusesResource, componentStatus), &api.ComponentStatus{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ComponentStatus), err | ||||
| } | ||||
|  | ||||
| func (c *FakeComponentStatuses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(componentstatusesResource, name), &api.ComponentStatus{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeComponentStatuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(componentstatusesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ComponentStatusList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any. | ||||
| func (c *FakeComponentStatuses) Get(name string, options v1.GetOptions) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(componentstatusesResource, name), &api.ComponentStatus{}) | ||||
| @@ -75,6 +45,7 @@ func (c *FakeComponentStatuses) Get(name string, options v1.GetOptions) (result | ||||
| 	return obj.(*api.ComponentStatus), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | ||||
| func (c *FakeComponentStatuses) List(opts v1.ListOptions) (result *api.ComponentStatusList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(componentstatusesResource, componentstatusesKind, opts), &api.ComponentStatusList{}) | ||||
| @@ -101,6 +72,41 @@ func (c *FakeComponentStatuses) Watch(opts v1.ListOptions) (watch.Interface, err | ||||
| 		InvokesWatch(testing.NewRootWatchAction(componentstatusesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a componentStatus and creates it.  Returns the server's representation of the componentStatus, and an error, if there is any. | ||||
| func (c *FakeComponentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(componentstatusesResource, componentStatus), &api.ComponentStatus{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ComponentStatus), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a componentStatus and updates it. Returns the server's representation of the componentStatus, and an error, if there is any. | ||||
| func (c *FakeComponentStatuses) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(componentstatusesResource, componentStatus), &api.ComponentStatus{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ComponentStatus), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the componentStatus and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeComponentStatuses) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(componentstatusesResource, name), &api.ComponentStatus{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeComponentStatuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(componentstatusesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ComponentStatusList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched componentStatus. | ||||
| func (c *FakeComponentStatuses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ComponentStatus, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var configmapsResource = schema.GroupVersionResource{Group: "", Version: "", Res | ||||
|  | ||||
| var configmapsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ConfigMap"} | ||||
|  | ||||
| func (c *FakeConfigMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Update(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any. | ||||
| func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeConfigMaps) Get(name string, options v1.GetOptions) (result *api.Co | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||
| func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *api.ConfigMapList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), &api.ConfigMapList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a configMap and creates it.  Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Create(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any. | ||||
| func (c *FakeConfigMaps) Update(configMap *api.ConfigMap) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &api.ConfigMap{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ConfigMap), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the configMap and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeConfigMaps) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &api.ConfigMap{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeConfigMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ConfigMapList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched configMap. | ||||
| func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ConfigMap, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var endpointsResource = schema.GroupVersionResource{Group: "", Version: "", Reso | ||||
|  | ||||
| var endpointsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Endpoints"} | ||||
|  | ||||
| func (c *FakeEndpoints) Create(endpoints *api.Endpoints) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(endpointsResource, c.ns, endpoints), &api.Endpoints{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Endpoints), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEndpoints) Update(endpoints *api.Endpoints) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(endpointsResource, c.ns, endpoints), &api.Endpoints{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Endpoints), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEndpoints) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(endpointsResource, c.ns, name), &api.Endpoints{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeEndpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(endpointsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EndpointsList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the endpoints, and returns the corresponding endpoints object, and an error if there is any. | ||||
| func (c *FakeEndpoints) Get(name string, options v1.GetOptions) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(endpointsResource, c.ns, name), &api.Endpoints{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeEndpoints) Get(name string, options v1.GetOptions) (result *api.End | ||||
| 	return obj.(*api.Endpoints), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Endpoints that match those selectors. | ||||
| func (c *FakeEndpoints) List(opts v1.ListOptions) (result *api.EndpointsList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(endpointsResource, endpointsKind, c.ns, opts), &api.EndpointsList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeEndpoints) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a endpoints and creates it.  Returns the server's representation of the endpoints, and an error, if there is any. | ||||
| func (c *FakeEndpoints) Create(endpoints *api.Endpoints) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(endpointsResource, c.ns, endpoints), &api.Endpoints{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Endpoints), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a endpoints and updates it. Returns the server's representation of the endpoints, and an error, if there is any. | ||||
| func (c *FakeEndpoints) Update(endpoints *api.Endpoints) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(endpointsResource, c.ns, endpoints), &api.Endpoints{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Endpoints), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the endpoints and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeEndpoints) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(endpointsResource, c.ns, name), &api.Endpoints{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeEndpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(endpointsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EndpointsList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched endpoints. | ||||
| func (c *FakeEndpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Endpoints, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var eventsResource = schema.GroupVersionResource{Group: "", Version: "", Resourc | ||||
|  | ||||
| var eventsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Event"} | ||||
|  | ||||
| func (c *FakeEvents) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Update(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &api.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the event, and returns the corresponding event object, and an error if there is any. | ||||
| func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(eventsResource, c.ns, name), &api.Event{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *api.Event, | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||
| func (c *FakeEvents) List(opts v1.ListOptions) (result *api.EventList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(eventsResource, eventsKind, c.ns, opts), &api.EventList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Create(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. | ||||
| func (c *FakeEvents) Update(event *api.Event) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(eventsResource, c.ns, event), &api.Event{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Event), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the event and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(eventsResource, c.ns, name), &api.Event{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(eventsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.EventList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched event. | ||||
| func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Event, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var limitrangesResource = schema.GroupVersionResource{Group: "", Version: "", Re | ||||
|  | ||||
| var limitrangesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "LimitRange"} | ||||
|  | ||||
| func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(limitrangesResource, c.ns, limitRange), &api.LimitRange{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.LimitRange), err | ||||
| } | ||||
|  | ||||
| func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(limitrangesResource, c.ns, limitRange), &api.LimitRange{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.LimitRange), err | ||||
| } | ||||
|  | ||||
| func (c *FakeLimitRanges) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(limitrangesResource, c.ns, name), &api.LimitRange{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.LimitRangeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the limitRange, and returns the corresponding limitRange object, and an error if there is any. | ||||
| func (c *FakeLimitRanges) Get(name string, options v1.GetOptions) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(limitrangesResource, c.ns, name), &api.LimitRange{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeLimitRanges) Get(name string, options v1.GetOptions) (result *api.L | ||||
| 	return obj.(*api.LimitRange), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. | ||||
| func (c *FakeLimitRanges) List(opts v1.ListOptions) (result *api.LimitRangeList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(limitrangesResource, limitrangesKind, c.ns, opts), &api.LimitRangeList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeLimitRanges) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a limitRange and creates it.  Returns the server's representation of the limitRange, and an error, if there is any. | ||||
| func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(limitrangesResource, c.ns, limitRange), &api.LimitRange{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.LimitRange), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a limitRange and updates it. Returns the server's representation of the limitRange, and an error, if there is any. | ||||
| func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(limitrangesResource, c.ns, limitRange), &api.LimitRange{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.LimitRange), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the limitRange and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeLimitRanges) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(limitrangesResource, c.ns, name), &api.LimitRange{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.LimitRangeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched limitRange. | ||||
| func (c *FakeLimitRanges) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var namespacesResource = schema.GroupVersionResource{Group: "", Version: "", Res | ||||
|  | ||||
| var namespacesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Namespace"} | ||||
|  | ||||
| func (c *FakeNamespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Update(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *api.Namespace) (*api.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &api.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(namespacesResource, name), &api.Namespace{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeNamespaces) Get(name string, options v1.GetOptions) (result *api.Na | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *FakeNamespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(namespacesResource, namespacesKind, opts), &api.NamespaceList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeNamespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 		InvokesWatch(testing.NewRootWatchAction(namespacesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *FakeNamespaces) Update(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(namespacesResource, namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeNamespaces) UpdateStatus(namespace *api.Namespace) (*api.Namespace, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &api.Namespace{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Namespace), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the namespace and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeNamespaces) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(namespacesResource, name), &api.Namespace{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeNamespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(namespacesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NamespaceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var nodesResource = schema.GroupVersionResource{Group: "", Version: "", Resource | ||||
|  | ||||
| var nodesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Node"} | ||||
|  | ||||
| func (c *FakeNodes) Create(node *api.Node) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(nodesResource, node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNodes) Update(node *api.Node) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(nodesResource, node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNodes) UpdateStatus(node *api.Node) (*api.Node, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(nodesResource, "status", node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| func (c *FakeNodes) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(nodesResource, name), &api.Node{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeNodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(nodesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NodeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the node, and returns the corresponding node object, and an error if there is any. | ||||
| func (c *FakeNodes) Get(name string, options v1.GetOptions) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(nodesResource, name), &api.Node{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakeNodes) Get(name string, options v1.GetOptions) (result *api.Node, e | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Nodes that match those selectors. | ||||
| func (c *FakeNodes) List(opts v1.ListOptions) (result *api.NodeList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(nodesResource, nodesKind, opts), &api.NodeList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakeNodes) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 		InvokesWatch(testing.NewRootWatchAction(nodesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a node and creates it.  Returns the server's representation of the node, and an error, if there is any. | ||||
| func (c *FakeNodes) Create(node *api.Node) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(nodesResource, node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a node and updates it. Returns the server's representation of the node, and an error, if there is any. | ||||
| func (c *FakeNodes) Update(node *api.Node) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(nodesResource, node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeNodes) UpdateStatus(node *api.Node) (*api.Node, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(nodesResource, "status", node), &api.Node{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Node), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the node and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeNodes) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(nodesResource, name), &api.Node{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeNodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(nodesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.NodeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched node. | ||||
| func (c *FakeNodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Node, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -35,46 +35,7 @@ var persistentvolumesResource = schema.GroupVersionResource{Group: "", Version: | ||||
|  | ||||
| var persistentvolumesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "PersistentVolume"} | ||||
|  | ||||
| func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(persistentvolumesResource, persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(persistentvolumesResource, persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) (*api.PersistentVolume, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(persistentvolumesResource, "status", persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumes) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(persistentvolumesResource, name), &api.PersistentVolume{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(persistentvolumesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PersistentVolumeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolume, and returns the corresponding persistentVolume object, and an error if there is any. | ||||
| func (c *FakePersistentVolumes) Get(name string, options v1.GetOptions) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootGetAction(persistentvolumesResource, name), &api.PersistentVolume{}) | ||||
| @@ -84,6 +45,7 @@ func (c *FakePersistentVolumes) Get(name string, options v1.GetOptions) (result | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | ||||
| func (c *FakePersistentVolumes) List(opts v1.ListOptions) (result *api.PersistentVolumeList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootListAction(persistentvolumesResource, persistentvolumesKind, opts), &api.PersistentVolumeList{}) | ||||
| @@ -110,6 +72,52 @@ func (c *FakePersistentVolumes) Watch(opts v1.ListOptions) (watch.Interface, err | ||||
| 		InvokesWatch(testing.NewRootWatchAction(persistentvolumesResource, opts)) | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a persistentVolume and creates it.  Returns the server's representation of the persistentVolume, and an error, if there is any. | ||||
| func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootCreateAction(persistentvolumesResource, persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a persistentVolume and updates it. Returns the server's representation of the persistentVolume, and an error, if there is any. | ||||
| func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateAction(persistentvolumesResource, persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) (*api.PersistentVolume, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewRootUpdateSubresourceAction(persistentvolumesResource, "status", persistentVolume), &api.PersistentVolume{}) | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolume), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the persistentVolume and deletes it. Returns an error if one occurs. | ||||
| func (c *FakePersistentVolumes) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewRootDeleteAction(persistentvolumesResource, name), &api.PersistentVolume{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakePersistentVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewRootDeleteCollectionAction(persistentvolumesResource, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PersistentVolumeList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched persistentVolume. | ||||
| func (c *FakePersistentVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var persistentvolumeclaimsResource = schema.GroupVersionResource{Group: "", Vers | ||||
|  | ||||
| var persistentvolumeclaimsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "PersistentVolumeClaim"} | ||||
|  | ||||
| func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(persistentvolumeclaimsResource, "status", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumeClaims) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(persistentvolumeclaimsResource, c.ns, name), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakePersistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(persistentvolumeclaimsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PersistentVolumeClaimList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolumeClaim, and returns the corresponding persistentVolumeClaim object, and an error if there is any. | ||||
| func (c *FakePersistentVolumeClaims) Get(name string, options v1.GetOptions) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(persistentvolumeclaimsResource, c.ns, name), &api.PersistentVolumeClaim{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakePersistentVolumeClaims) Get(name string, options v1.GetOptions) (re | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | ||||
| func (c *FakePersistentVolumeClaims) List(opts v1.ListOptions) (result *api.PersistentVolumeClaimList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(persistentvolumeclaimsResource, persistentvolumeclaimsKind, c.ns, opts), &api.PersistentVolumeClaimList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakePersistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a persistentVolumeClaim and creates it.  Returns the server's representation of the persistentVolumeClaim, and an error, if there is any. | ||||
| func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a persistentVolumeClaim and updates it. Returns the server's representation of the persistentVolumeClaim, and an error, if there is any. | ||||
| func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(persistentvolumeclaimsResource, c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(persistentvolumeclaimsResource, "status", c.ns, persistentVolumeClaim), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PersistentVolumeClaim), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the persistentVolumeClaim and deletes it. Returns an error if one occurs. | ||||
| func (c *FakePersistentVolumeClaims) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(persistentvolumeclaimsResource, c.ns, name), &api.PersistentVolumeClaim{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakePersistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(persistentvolumeclaimsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PersistentVolumeClaimList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched persistentVolumeClaim. | ||||
| func (c *FakePersistentVolumeClaims) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var podsResource = schema.GroupVersionResource{Group: "", Version: "", Resource: | ||||
|  | ||||
| var podsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Pod"} | ||||
|  | ||||
| func (c *FakePods) Create(pod *api.Pod) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(podsResource, c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| func (c *FakePods) Update(pod *api.Pod) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(podsResource, c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| func (c *FakePods) UpdateStatus(pod *api.Pod) (*api.Pod, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(podsResource, "status", c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| func (c *FakePods) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(podsResource, c.ns, name), &api.Pod{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakePods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(podsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PodList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the pod, and returns the corresponding pod object, and an error if there is any. | ||||
| func (c *FakePods) Get(name string, options v1.GetOptions) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(podsResource, c.ns, name), &api.Pod{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakePods) Get(name string, options v1.GetOptions) (result *api.Pod, err | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Pods that match those selectors. | ||||
| func (c *FakePods) List(opts v1.ListOptions) (result *api.PodList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(podsResource, podsKind, c.ns, opts), &api.PodList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakePods) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a pod and creates it.  Returns the server's representation of the pod, and an error, if there is any. | ||||
| func (c *FakePods) Create(pod *api.Pod) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(podsResource, c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a pod and updates it. Returns the server's representation of the pod, and an error, if there is any. | ||||
| func (c *FakePods) Update(pod *api.Pod) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(podsResource, c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakePods) UpdateStatus(pod *api.Pod) (*api.Pod, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(podsResource, "status", c.ns, pod), &api.Pod{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Pod), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the pod and deletes it. Returns an error if one occurs. | ||||
| func (c *FakePods) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(podsResource, c.ns, name), &api.Pod{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakePods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(podsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PodList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched pod. | ||||
| func (c *FakePods) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var podtemplatesResource = schema.GroupVersionResource{Group: "", Version: "", R | ||||
|  | ||||
| var podtemplatesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "PodTemplate"} | ||||
|  | ||||
| func (c *FakePodTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(podtemplatesResource, c.ns, podTemplate), &api.PodTemplate{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PodTemplate), err | ||||
| } | ||||
|  | ||||
| func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(podtemplatesResource, c.ns, podTemplate), &api.PodTemplate{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PodTemplate), err | ||||
| } | ||||
|  | ||||
| func (c *FakePodTemplates) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(podtemplatesResource, c.ns, name), &api.PodTemplate{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakePodTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(podtemplatesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PodTemplateList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the podTemplate, and returns the corresponding podTemplate object, and an error if there is any. | ||||
| func (c *FakePodTemplates) Get(name string, options v1.GetOptions) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(podtemplatesResource, c.ns, name), &api.PodTemplate{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakePodTemplates) Get(name string, options v1.GetOptions) (result *api. | ||||
| 	return obj.(*api.PodTemplate), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. | ||||
| func (c *FakePodTemplates) List(opts v1.ListOptions) (result *api.PodTemplateList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(podtemplatesResource, podtemplatesKind, c.ns, opts), &api.PodTemplateList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakePodTemplates) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a podTemplate and creates it.  Returns the server's representation of the podTemplate, and an error, if there is any. | ||||
| func (c *FakePodTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(podtemplatesResource, c.ns, podTemplate), &api.PodTemplate{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PodTemplate), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a podTemplate and updates it. Returns the server's representation of the podTemplate, and an error, if there is any. | ||||
| func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(podtemplatesResource, c.ns, podTemplate), &api.PodTemplate{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.PodTemplate), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the podTemplate and deletes it. Returns an error if one occurs. | ||||
| func (c *FakePodTemplates) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(podtemplatesResource, c.ns, name), &api.PodTemplate{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakePodTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(podtemplatesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.PodTemplateList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched podTemplate. | ||||
| func (c *FakePodTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var replicationcontrollersResource = schema.GroupVersionResource{Group: "", Vers | ||||
|  | ||||
| var replicationcontrollersKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ReplicationController"} | ||||
|  | ||||
| func (c *FakeReplicationControllers) Create(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicationcontrollersResource, c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicationControllers) Update(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicationcontrollersResource, c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicationControllers) UpdateStatus(replicationController *api.ReplicationController) (*api.ReplicationController, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicationcontrollersResource, "status", c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicationControllers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicationcontrollersResource, c.ns, name), &api.ReplicationController{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeReplicationControllers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicationcontrollersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ReplicationControllerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicationController, and returns the corresponding replicationController object, and an error if there is any. | ||||
| func (c *FakeReplicationControllers) Get(name string, options v1.GetOptions) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(replicationcontrollersResource, c.ns, name), &api.ReplicationController{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeReplicationControllers) Get(name string, options v1.GetOptions) (re | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | ||||
| func (c *FakeReplicationControllers) List(opts v1.ListOptions) (result *api.ReplicationControllerList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(replicationcontrollersResource, replicationcontrollersKind, c.ns, opts), &api.ReplicationControllerList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeReplicationControllers) Watch(opts v1.ListOptions) (watch.Interface | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicationController and creates it.  Returns the server's representation of the replicationController, and an error, if there is any. | ||||
| func (c *FakeReplicationControllers) Create(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(replicationcontrollersResource, c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a replicationController and updates it. Returns the server's representation of the replicationController, and an error, if there is any. | ||||
| func (c *FakeReplicationControllers) Update(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(replicationcontrollersResource, c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeReplicationControllers) UpdateStatus(replicationController *api.ReplicationController) (*api.ReplicationController, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(replicationcontrollersResource, "status", c.ns, replicationController), &api.ReplicationController{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ReplicationController), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the replicationController and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeReplicationControllers) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(replicationcontrollersResource, c.ns, name), &api.ReplicationController{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeReplicationControllers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(replicationcontrollersResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ReplicationControllerList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicationController. | ||||
| func (c *FakeReplicationControllers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var resourcequotasResource = schema.GroupVersionResource{Group: "", Version: "", | ||||
|  | ||||
| var resourcequotasKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ResourceQuota"} | ||||
|  | ||||
| func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(resourcequotasResource, c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(resourcequotasResource, c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(resourcequotasResource, "status", c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| func (c *FakeResourceQuotas) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(resourcequotasResource, c.ns, name), &api.ResourceQuota{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeResourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(resourcequotasResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ResourceQuotaList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the resourceQuota, and returns the corresponding resourceQuota object, and an error if there is any. | ||||
| func (c *FakeResourceQuotas) Get(name string, options v1.GetOptions) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(resourcequotasResource, c.ns, name), &api.ResourceQuota{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeResourceQuotas) Get(name string, options v1.GetOptions) (result *ap | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | ||||
| func (c *FakeResourceQuotas) List(opts v1.ListOptions) (result *api.ResourceQuotaList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(resourcequotasResource, resourcequotasKind, c.ns, opts), &api.ResourceQuotaList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeResourceQuotas) Watch(opts v1.ListOptions) (watch.Interface, error) | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a resourceQuota and creates it.  Returns the server's representation of the resourceQuota, and an error, if there is any. | ||||
| func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(resourcequotasResource, c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a resourceQuota and updates it. Returns the server's representation of the resourceQuota, and an error, if there is any. | ||||
| func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(resourcequotasResource, c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(resourcequotasResource, "status", c.ns, resourceQuota), &api.ResourceQuota{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ResourceQuota), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the resourceQuota and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeResourceQuotas) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(resourcequotasResource, c.ns, name), &api.ResourceQuota{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeResourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(resourcequotasResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ResourceQuotaList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched resourceQuota. | ||||
| func (c *FakeResourceQuotas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var secretsResource = schema.GroupVersionResource{Group: "", Version: "", Resour | ||||
|  | ||||
| var secretsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Secret"} | ||||
|  | ||||
| func (c *FakeSecrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Update(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *api.Secre | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *FakeSecrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), &api.SecretList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *FakeSecrets) Update(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(secretsResource, c.ns, secret), &api.Secret{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Secret), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the secret and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeSecrets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(secretsResource, c.ns, name), &api.Secret{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeSecrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(secretsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.SecretList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var servicesResource = schema.GroupVersionResource{Group: "", Version: "", Resou | ||||
|  | ||||
| var servicesKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "Service"} | ||||
|  | ||||
| func (c *FakeServices) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Update(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) UpdateStatus(service *api.Service) (*api.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &api.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *FakeServices) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(servicesResource, c.ns, name), &api.Service{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeServices) Get(name string, options v1.GetOptions) (result *api.Serv | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *FakeServices) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(servicesResource, servicesKind, c.ns, opts), &api.ServiceList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *FakeServices) Update(service *api.Service) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(servicesResource, c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeServices) UpdateStatus(service *api.Service) (*api.Service, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &api.Service{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.Service), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the service and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(servicesResource, c.ns, name), &api.Service{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(servicesResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,40 +36,7 @@ var serviceaccountsResource = schema.GroupVersionResource{Group: "", Version: "" | ||||
|  | ||||
| var serviceaccountsKind = schema.GroupVersionKind{Group: "", Version: "", Kind: "ServiceAccount"} | ||||
|  | ||||
| func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(serviceaccountsResource, c.ns, serviceAccount), &api.ServiceAccount{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ServiceAccount), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(serviceaccountsResource, c.ns, serviceAccount), &api.ServiceAccount{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ServiceAccount), err | ||||
| } | ||||
|  | ||||
| func (c *FakeServiceAccounts) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(serviceaccountsResource, c.ns, name), &api.ServiceAccount{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeServiceAccounts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(serviceaccountsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceAccountList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the serviceAccount, and returns the corresponding serviceAccount object, and an error if there is any. | ||||
| func (c *FakeServiceAccounts) Get(name string, options v1.GetOptions) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(serviceaccountsResource, c.ns, name), &api.ServiceAccount{}) | ||||
| @@ -80,6 +47,7 @@ func (c *FakeServiceAccounts) Get(name string, options v1.GetOptions) (result *a | ||||
| 	return obj.(*api.ServiceAccount), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | ||||
| func (c *FakeServiceAccounts) List(opts v1.ListOptions) (result *api.ServiceAccountList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(serviceaccountsResource, serviceaccountsKind, c.ns, opts), &api.ServiceAccountList{}) | ||||
| @@ -108,6 +76,44 @@ func (c *FakeServiceAccounts) Watch(opts v1.ListOptions) (watch.Interface, error | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a serviceAccount and creates it.  Returns the server's representation of the serviceAccount, and an error, if there is any. | ||||
| func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(serviceaccountsResource, c.ns, serviceAccount), &api.ServiceAccount{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ServiceAccount), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a serviceAccount and updates it. Returns the server's representation of the serviceAccount, and an error, if there is any. | ||||
| func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(serviceaccountsResource, c.ns, serviceAccount), &api.ServiceAccount{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*api.ServiceAccount), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the serviceAccount and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeServiceAccounts) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(serviceaccountsResource, c.ns, name), &api.ServiceAccount{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeServiceAccounts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(serviceaccountsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &api.ServiceAccountList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched serviceAccount. | ||||
| func (c *FakeServiceAccounts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newLimitRanges(c *CoreClient, namespace string) *limitRanges { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the limitRange, and returns the corresponding limitRange object, and an error if there is any. | ||||
| func (c *limitRanges) Get(name string, options v1.GetOptions) (result *api.LimitRange, err error) { | ||||
| 	result = &api.LimitRange{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. | ||||
| func (c *limitRanges) List(opts v1.ListOptions) (result *api.LimitRangeList, err error) { | ||||
| 	result = &api.LimitRangeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested limitRanges. | ||||
| func (c *limitRanges) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a limitRange and creates it.  Returns the server's representation of the limitRange, and an error, if there is any. | ||||
| func (c *limitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange, err error) { | ||||
| 	result = &api.LimitRange{} | ||||
| @@ -105,41 +140,6 @@ func (c *limitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the limitRange, and returns the corresponding limitRange object, and an error if there is any. | ||||
| func (c *limitRanges) Get(name string, options v1.GetOptions) (result *api.LimitRange, err error) { | ||||
| 	result = &api.LimitRange{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. | ||||
| func (c *limitRanges) List(opts v1.ListOptions) (result *api.LimitRangeList, err error) { | ||||
| 	result = &api.LimitRangeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested limitRanges. | ||||
| func (c *limitRanges) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("limitranges"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched limitRange. | ||||
| func (c *limitRanges) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.LimitRange, err error) { | ||||
| 	result = &api.LimitRange{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newNamespaces(c *CoreClient) *namespaces { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	result = &api.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any. | ||||
| func (c *namespaces) Create(namespace *api.Namespace) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| @@ -115,38 +147,6 @@ func (c *namespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any. | ||||
| func (c *namespaces) Get(name string, options v1.GetOptions) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||
| func (c *namespaces) List(opts v1.ListOptions) (result *api.NamespaceList, err error) { | ||||
| 	result = &api.NamespaceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested namespaces. | ||||
| func (c *namespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("namespaces"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched namespace. | ||||
| func (c *namespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) { | ||||
| 	result = &api.Namespace{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newNodes(c *CoreClient) *nodes { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the node, and returns the corresponding node object, and an error if there is any. | ||||
| func (c *nodes) Get(name string, options v1.GetOptions) (result *api.Node, err error) { | ||||
| 	result = &api.Node{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Nodes that match those selectors. | ||||
| func (c *nodes) List(opts v1.ListOptions) (result *api.NodeList, err error) { | ||||
| 	result = &api.NodeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested nodes. | ||||
| func (c *nodes) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a node and creates it.  Returns the server's representation of the node, and an error, if there is any. | ||||
| func (c *nodes) Create(node *api.Node) (result *api.Node, err error) { | ||||
| 	result = &api.Node{} | ||||
| @@ -115,38 +147,6 @@ func (c *nodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListO | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the node, and returns the corresponding node object, and an error if there is any. | ||||
| func (c *nodes) Get(name string, options v1.GetOptions) (result *api.Node, err error) { | ||||
| 	result = &api.Node{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Nodes that match those selectors. | ||||
| func (c *nodes) List(opts v1.ListOptions) (result *api.NodeList, err error) { | ||||
| 	result = &api.NodeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested nodes. | ||||
| func (c *nodes) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("nodes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched node. | ||||
| func (c *nodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Node, err error) { | ||||
| 	result = &api.Node{} | ||||
|   | ||||
| @@ -57,6 +57,38 @@ func newPersistentVolumes(c *CoreClient) *persistentVolumes { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolume, and returns the corresponding persistentVolume object, and an error if there is any. | ||||
| func (c *persistentVolumes) Get(name string, options v1.GetOptions) (result *api.PersistentVolume, err error) { | ||||
| 	result = &api.PersistentVolume{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | ||||
| func (c *persistentVolumes) List(opts v1.ListOptions) (result *api.PersistentVolumeList, err error) { | ||||
| 	result = &api.PersistentVolumeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested persistentVolumes. | ||||
| func (c *persistentVolumes) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a persistentVolume and creates it.  Returns the server's representation of the persistentVolume, and an error, if there is any. | ||||
| func (c *persistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) { | ||||
| 	result = &api.PersistentVolume{} | ||||
| @@ -115,38 +147,6 @@ func (c *persistentVolumes) DeleteCollection(options *v1.DeleteOptions, listOpti | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolume, and returns the corresponding persistentVolume object, and an error if there is any. | ||||
| func (c *persistentVolumes) Get(name string, options v1.GetOptions) (result *api.PersistentVolume, err error) { | ||||
| 	result = &api.PersistentVolume{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | ||||
| func (c *persistentVolumes) List(opts v1.ListOptions) (result *api.PersistentVolumeList, err error) { | ||||
| 	result = &api.PersistentVolumeList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested persistentVolumes. | ||||
| func (c *persistentVolumes) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Resource("persistentvolumes"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched persistentVolume. | ||||
| func (c *persistentVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PersistentVolume, err error) { | ||||
| 	result = &api.PersistentVolume{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newPersistentVolumeClaims(c *CoreClient, namespace string) *persistentVolum | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolumeClaim, and returns the corresponding persistentVolumeClaim object, and an error if there is any. | ||||
| func (c *persistentVolumeClaims) Get(name string, options v1.GetOptions) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	result = &api.PersistentVolumeClaim{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | ||||
| func (c *persistentVolumeClaims) List(opts v1.ListOptions) (result *api.PersistentVolumeClaimList, err error) { | ||||
| 	result = &api.PersistentVolumeClaimList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. | ||||
| func (c *persistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a persistentVolumeClaim and creates it.  Returns the server's representation of the persistentVolumeClaim, and an error, if there is any. | ||||
| func (c *persistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	result = &api.PersistentVolumeClaim{} | ||||
| @@ -122,41 +157,6 @@ func (c *persistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, lis | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the persistentVolumeClaim, and returns the corresponding persistentVolumeClaim object, and an error if there is any. | ||||
| func (c *persistentVolumeClaims) Get(name string, options v1.GetOptions) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	result = &api.PersistentVolumeClaim{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | ||||
| func (c *persistentVolumeClaims) List(opts v1.ListOptions) (result *api.PersistentVolumeClaimList, err error) { | ||||
| 	result = &api.PersistentVolumeClaimList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. | ||||
| func (c *persistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("persistentvolumeclaims"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched persistentVolumeClaim. | ||||
| func (c *persistentVolumeClaims) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PersistentVolumeClaim, err error) { | ||||
| 	result = &api.PersistentVolumeClaim{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newPods(c *CoreClient, namespace string) *pods { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the pod, and returns the corresponding pod object, and an error if there is any. | ||||
| func (c *pods) Get(name string, options v1.GetOptions) (result *api.Pod, err error) { | ||||
| 	result = &api.Pod{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Pods that match those selectors. | ||||
| func (c *pods) List(opts v1.ListOptions) (result *api.PodList, err error) { | ||||
| 	result = &api.PodList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested pods. | ||||
| func (c *pods) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a pod and creates it.  Returns the server's representation of the pod, and an error, if there is any. | ||||
| func (c *pods) Create(pod *api.Pod) (result *api.Pod, err error) { | ||||
| 	result = &api.Pod{} | ||||
| @@ -122,41 +157,6 @@ func (c *pods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOp | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the pod, and returns the corresponding pod object, and an error if there is any. | ||||
| func (c *pods) Get(name string, options v1.GetOptions) (result *api.Pod, err error) { | ||||
| 	result = &api.Pod{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Pods that match those selectors. | ||||
| func (c *pods) List(opts v1.ListOptions) (result *api.PodList, err error) { | ||||
| 	result = &api.PodList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested pods. | ||||
| func (c *pods) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("pods"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched pod. | ||||
| func (c *pods) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Pod, err error) { | ||||
| 	result = &api.Pod{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newPodTemplates(c *CoreClient, namespace string) *podTemplates { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the podTemplate, and returns the corresponding podTemplate object, and an error if there is any. | ||||
| func (c *podTemplates) Get(name string, options v1.GetOptions) (result *api.PodTemplate, err error) { | ||||
| 	result = &api.PodTemplate{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. | ||||
| func (c *podTemplates) List(opts v1.ListOptions) (result *api.PodTemplateList, err error) { | ||||
| 	result = &api.PodTemplateList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested podTemplates. | ||||
| func (c *podTemplates) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a podTemplate and creates it.  Returns the server's representation of the podTemplate, and an error, if there is any. | ||||
| func (c *podTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error) { | ||||
| 	result = &api.PodTemplate{} | ||||
| @@ -105,41 +140,6 @@ func (c *podTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the podTemplate, and returns the corresponding podTemplate object, and an error if there is any. | ||||
| func (c *podTemplates) Get(name string, options v1.GetOptions) (result *api.PodTemplate, err error) { | ||||
| 	result = &api.PodTemplate{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. | ||||
| func (c *podTemplates) List(opts v1.ListOptions) (result *api.PodTemplateList, err error) { | ||||
| 	result = &api.PodTemplateList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested podTemplates. | ||||
| func (c *podTemplates) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("podtemplates"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched podTemplate. | ||||
| func (c *podTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.PodTemplate, err error) { | ||||
| 	result = &api.PodTemplate{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newReplicationControllers(c *CoreClient, namespace string) *replicationCont | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicationController, and returns the corresponding replicationController object, and an error if there is any. | ||||
| func (c *replicationControllers) Get(name string, options v1.GetOptions) (result *api.ReplicationController, err error) { | ||||
| 	result = &api.ReplicationController{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | ||||
| func (c *replicationControllers) List(opts v1.ListOptions) (result *api.ReplicationControllerList, err error) { | ||||
| 	result = &api.ReplicationControllerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicationControllers. | ||||
| func (c *replicationControllers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a replicationController and creates it.  Returns the server's representation of the replicationController, and an error, if there is any. | ||||
| func (c *replicationControllers) Create(replicationController *api.ReplicationController) (result *api.ReplicationController, err error) { | ||||
| 	result = &api.ReplicationController{} | ||||
| @@ -122,41 +157,6 @@ func (c *replicationControllers) DeleteCollection(options *v1.DeleteOptions, lis | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the replicationController, and returns the corresponding replicationController object, and an error if there is any. | ||||
| func (c *replicationControllers) Get(name string, options v1.GetOptions) (result *api.ReplicationController, err error) { | ||||
| 	result = &api.ReplicationController{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | ||||
| func (c *replicationControllers) List(opts v1.ListOptions) (result *api.ReplicationControllerList, err error) { | ||||
| 	result = &api.ReplicationControllerList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested replicationControllers. | ||||
| func (c *replicationControllers) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("replicationcontrollers"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched replicationController. | ||||
| func (c *replicationControllers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ReplicationController, err error) { | ||||
| 	result = &api.ReplicationController{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newResourceQuotas(c *CoreClient, namespace string) *resourceQuotas { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the resourceQuota, and returns the corresponding resourceQuota object, and an error if there is any. | ||||
| func (c *resourceQuotas) Get(name string, options v1.GetOptions) (result *api.ResourceQuota, err error) { | ||||
| 	result = &api.ResourceQuota{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | ||||
| func (c *resourceQuotas) List(opts v1.ListOptions) (result *api.ResourceQuotaList, err error) { | ||||
| 	result = &api.ResourceQuotaList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested resourceQuotas. | ||||
| func (c *resourceQuotas) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a resourceQuota and creates it.  Returns the server's representation of the resourceQuota, and an error, if there is any. | ||||
| func (c *resourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { | ||||
| 	result = &api.ResourceQuota{} | ||||
| @@ -122,41 +157,6 @@ func (c *resourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the resourceQuota, and returns the corresponding resourceQuota object, and an error if there is any. | ||||
| func (c *resourceQuotas) Get(name string, options v1.GetOptions) (result *api.ResourceQuota, err error) { | ||||
| 	result = &api.ResourceQuota{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | ||||
| func (c *resourceQuotas) List(opts v1.ListOptions) (result *api.ResourceQuotaList, err error) { | ||||
| 	result = &api.ResourceQuotaList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested resourceQuotas. | ||||
| func (c *resourceQuotas) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("resourcequotas"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched resourceQuota. | ||||
| func (c *resourceQuotas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ResourceQuota, err error) { | ||||
| 	result = &api.ResourceQuota{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newSecrets(c *CoreClient, namespace string) *secrets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	result = &api.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any. | ||||
| func (c *secrets) Create(secret *api.Secret) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| @@ -105,41 +140,6 @@ func (c *secrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Lis | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the secret, and returns the corresponding secret object, and an error if there is any. | ||||
| func (c *secrets) Get(name string, options v1.GetOptions) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||
| func (c *secrets) List(opts v1.ListOptions) (result *api.SecretList, err error) { | ||||
| 	result = &api.SecretList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested secrets. | ||||
| func (c *secrets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("secrets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched secret. | ||||
| func (c *secrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Secret, err error) { | ||||
| 	result = &api.Secret{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newServices(c *CoreClient, namespace string) *services { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	result = &api.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any. | ||||
| func (c *services) Create(service *api.Service) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| @@ -122,41 +157,6 @@ func (c *services) DeleteCollection(options *v1.DeleteOptions, listOptions v1.Li | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the service, and returns the corresponding service object, and an error if there is any. | ||||
| func (c *services) Get(name string, options v1.GetOptions) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||
| func (c *services) List(opts v1.ListOptions) (result *api.ServiceList, err error) { | ||||
| 	result = &api.ServiceList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested services. | ||||
| func (c *services) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("services"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched service. | ||||
| func (c *services) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.Service, err error) { | ||||
| 	result = &api.Service{} | ||||
|   | ||||
| @@ -58,6 +58,41 @@ func newServiceAccounts(c *CoreClient, namespace string) *serviceAccounts { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the serviceAccount, and returns the corresponding serviceAccount object, and an error if there is any. | ||||
| func (c *serviceAccounts) Get(name string, options v1.GetOptions) (result *api.ServiceAccount, err error) { | ||||
| 	result = &api.ServiceAccount{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | ||||
| func (c *serviceAccounts) List(opts v1.ListOptions) (result *api.ServiceAccountList, err error) { | ||||
| 	result = &api.ServiceAccountList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested serviceAccounts. | ||||
| func (c *serviceAccounts) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a serviceAccount and creates it.  Returns the server's representation of the serviceAccount, and an error, if there is any. | ||||
| func (c *serviceAccounts) Create(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error) { | ||||
| 	result = &api.ServiceAccount{} | ||||
| @@ -105,41 +140,6 @@ func (c *serviceAccounts) DeleteCollection(options *v1.DeleteOptions, listOption | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the serviceAccount, and returns the corresponding serviceAccount object, and an error if there is any. | ||||
| func (c *serviceAccounts) Get(name string, options v1.GetOptions) (result *api.ServiceAccount, err error) { | ||||
| 	result = &api.ServiceAccount{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | ||||
| func (c *serviceAccounts) List(opts v1.ListOptions) (result *api.ServiceAccountList, err error) { | ||||
| 	result = &api.ServiceAccountList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested serviceAccounts. | ||||
| func (c *serviceAccounts) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("serviceaccounts"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched serviceAccount. | ||||
| func (c *serviceAccounts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *api.ServiceAccount, err error) { | ||||
| 	result = &api.ServiceAccount{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDaemonSets(c *ExtensionsClient, namespace string) *daemonSets { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	result = &extensions.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *daemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| @@ -122,41 +157,6 @@ func (c *daemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1. | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *daemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *daemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	result = &extensions.DaemonSetList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested daemonSets. | ||||
| func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("daemonsets"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) { | ||||
| 	result = &extensions.DaemonSet{} | ||||
|   | ||||
| @@ -59,6 +59,41 @@ func newDeployments(c *ExtensionsClient, namespace string) *deployments { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	result = &extensions.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *deployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| @@ -122,41 +157,6 @@ func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1 | ||||
| 		Error() | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *deployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		Name(name). | ||||
| 		VersionedParams(&options, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *deployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	result = &extensions.DeploymentList{} | ||||
| 	err = c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Do(). | ||||
| 		Into(result) | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // Watch returns a watch.Interface that watches the requested deployments. | ||||
| func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
| 	opts.Watch = true | ||||
| 	return c.client.Get(). | ||||
| 		Namespace(c.ns). | ||||
| 		Resource("deployments"). | ||||
| 		VersionedParams(&opts, scheme.ParameterCodec). | ||||
| 		Watch() | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) { | ||||
| 	result = &extensions.Deployment{} | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var daemonsetsResource = schema.GroupVersionResource{Group: "extensions", Versio | ||||
|  | ||||
| var daemonsetsKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "DaemonSet"} | ||||
|  | ||||
| func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. | ||||
| func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extens | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||
| func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), &extensions.DaemonSetList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any. | ||||
| func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.DaemonSet), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the daemonSet and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &extensions.DaemonSet{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DaemonSetList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched daemonSet. | ||||
| func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
| @@ -36,50 +36,7 @@ var deploymentsResource = schema.GroupVersionResource{Group: "extensions", Versi | ||||
|  | ||||
| var deploymentsKind = schema.GroupVersionKind{Group: "extensions", Version: "", Kind: "Deployment"} | ||||
|  | ||||
| func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any. | ||||
| func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
| @@ -90,6 +47,7 @@ func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *exten | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||
| func (c *FakeDeployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), &extensions.DeploymentList{}) | ||||
| @@ -118,6 +76,56 @@ func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error) { | ||||
|  | ||||
| } | ||||
|  | ||||
| // Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any. | ||||
| func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // UpdateStatus was generated because the type contains a Status member. | ||||
| // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | ||||
| func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error) { | ||||
| 	obj, err := c.Fake. | ||||
| 		Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &extensions.Deployment{}) | ||||
|  | ||||
| 	if obj == nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return obj.(*extensions.Deployment), err | ||||
| } | ||||
|  | ||||
| // Delete takes name of the deployment and deletes it. Returns an error if one occurs. | ||||
| func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error { | ||||
| 	_, err := c.Fake. | ||||
| 		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &extensions.Deployment{}) | ||||
|  | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // DeleteCollection deletes a collection of objects. | ||||
| func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { | ||||
| 	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) | ||||
|  | ||||
| 	_, err := c.Fake.Invokes(action, &extensions.DeploymentList{}) | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Patch applies the patch and returns the patched deployment. | ||||
| func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error) { | ||||
| 	obj, err := c.Fake. | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Michal Fojtik
					Michal Fojtik