Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCdiV1alpha1
- type FakeDataVolumes
- func (c *FakeDataVolumes) Create(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)
- func (c *FakeDataVolumes) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDataVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDataVolumes) Get(name string, options v1.GetOptions) (result *v1alpha1.DataVolume, err error)
- func (c *FakeDataVolumes) List(opts v1.ListOptions) (result *v1alpha1.DataVolumeList, err error)
- func (c *FakeDataVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.DataVolume, err error)
- func (c *FakeDataVolumes) Update(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)
- func (c *FakeDataVolumes) UpdateStatus(dataVolume *v1alpha1.DataVolume) (*v1alpha1.DataVolume, error)
- func (c *FakeDataVolumes) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCdiV1alpha1 ¶
func (*FakeCdiV1alpha1) DataVolumes ¶
func (c *FakeCdiV1alpha1) DataVolumes(namespace string) v1alpha1.DataVolumeInterface
func (*FakeCdiV1alpha1) RESTClient ¶
func (c *FakeCdiV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeDataVolumes ¶
type FakeDataVolumes struct { Fake *FakeCdiV1alpha1 // contains filtered or unexported fields }
FakeDataVolumes implements DataVolumeInterface
func (*FakeDataVolumes) Create ¶
func (c *FakeDataVolumes) Create(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)
Create takes the representation of a dataVolume and creates it. Returns the server's representation of the dataVolume, and an error, if there is any.
func (*FakeDataVolumes) Delete ¶
func (c *FakeDataVolumes) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the dataVolume and deletes it. Returns an error if one occurs.
func (*FakeDataVolumes) DeleteCollection ¶
func (c *FakeDataVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDataVolumes) Get ¶
func (c *FakeDataVolumes) Get(name string, options v1.GetOptions) (result *v1alpha1.DataVolume, err error)
Get takes name of the dataVolume, and returns the corresponding dataVolume object, and an error if there is any.
func (*FakeDataVolumes) List ¶
func (c *FakeDataVolumes) List(opts v1.ListOptions) (result *v1alpha1.DataVolumeList, err error)
List takes label and field selectors, and returns the list of DataVolumes that match those selectors.
func (*FakeDataVolumes) Patch ¶
func (c *FakeDataVolumes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.DataVolume, err error)
Patch applies the patch and returns the patched dataVolume.
func (*FakeDataVolumes) Update ¶
func (c *FakeDataVolumes) Update(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)
Update takes the representation of a dataVolume and updates it. Returns the server's representation of the dataVolume, and an error, if there is any.
func (*FakeDataVolumes) UpdateStatus ¶
func (c *FakeDataVolumes) UpdateStatus(dataVolume *v1alpha1.DataVolume) (*v1alpha1.DataVolume, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDataVolumes) Watch ¶
func (c *FakeDataVolumes) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested dataVolumes.