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