Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeSampleResources
- func (c *FakeSampleResources) Create(sampleResource *samplecontrollerv1.SampleResource) (result *samplecontrollerv1.SampleResource, err error)
- func (c *FakeSampleResources) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeSampleResources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeSampleResources) Get(name string, options v1.GetOptions) (result *samplecontrollerv1.SampleResource, err error)
- func (c *FakeSampleResources) List(opts v1.ListOptions) (result *samplecontrollerv1.SampleResourceList, err error)
- func (c *FakeSampleResources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *samplecontrollerv1.SampleResource, err error)
- func (c *FakeSampleResources) Update(sampleResource *samplecontrollerv1.SampleResource) (result *samplecontrollerv1.SampleResource, err error)
- func (c *FakeSampleResources) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSamplecontrollerV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSampleResources ¶
type FakeSampleResources struct { Fake *FakeSamplecontrollerV1 // contains filtered or unexported fields }
FakeSampleResources implements SampleResourceInterface
func (*FakeSampleResources) Create ¶
func (c *FakeSampleResources) Create(sampleResource *samplecontrollerv1.SampleResource) (result *samplecontrollerv1.SampleResource, err error)
Create takes the representation of a sampleResource and creates it. Returns the server's representation of the sampleResource, and an error, if there is any.
func (*FakeSampleResources) Delete ¶
func (c *FakeSampleResources) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the sampleResource and deletes it. Returns an error if one occurs.
func (*FakeSampleResources) DeleteCollection ¶
func (c *FakeSampleResources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSampleResources) Get ¶
func (c *FakeSampleResources) Get(name string, options v1.GetOptions) (result *samplecontrollerv1.SampleResource, err error)
Get takes name of the sampleResource, and returns the corresponding sampleResource object, and an error if there is any.
func (*FakeSampleResources) List ¶
func (c *FakeSampleResources) List(opts v1.ListOptions) (result *samplecontrollerv1.SampleResourceList, err error)
List takes label and field selectors, and returns the list of SampleResources that match those selectors.
func (*FakeSampleResources) Patch ¶
func (c *FakeSampleResources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *samplecontrollerv1.SampleResource, err error)
Patch applies the patch and returns the patched sampleResource.
func (*FakeSampleResources) Update ¶
func (c *FakeSampleResources) Update(sampleResource *samplecontrollerv1.SampleResource) (result *samplecontrollerv1.SampleResource, err error)
Update takes the representation of a sampleResource and updates it. Returns the server's representation of the sampleResource, and an error, if there is any.
func (*FakeSampleResources) Watch ¶
func (c *FakeSampleResources) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested sampleResources.
type FakeSamplecontrollerV1 ¶
func (*FakeSamplecontrollerV1) RESTClient ¶
func (c *FakeSamplecontrollerV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeSamplecontrollerV1) SampleResources ¶
func (c *FakeSamplecontrollerV1) SampleResources(namespace string) v1.SampleResourceInterface