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