fake

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDeviceModels

type FakeDeviceModels struct {
	Fake *FakeDevicesV1beta1
	// contains filtered or unexported fields
}

FakeDeviceModels implements DeviceModelInterface

func (*FakeDeviceModels) Create

func (c *FakeDeviceModels) Create(ctx context.Context, deviceModel *v1beta1.DeviceModel, opts v1.CreateOptions) (result *v1beta1.DeviceModel, err error)

Create takes the representation of a deviceModel and creates it. Returns the server's representation of the deviceModel, and an error, if there is any.

func (*FakeDeviceModels) Delete

func (c *FakeDeviceModels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the deviceModel and deletes it. Returns an error if one occurs.

func (*FakeDeviceModels) DeleteCollection

func (c *FakeDeviceModels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDeviceModels) Get

func (c *FakeDeviceModels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DeviceModel, err error)

Get takes name of the deviceModel, and returns the corresponding deviceModel object, and an error if there is any.

func (*FakeDeviceModels) List

func (c *FakeDeviceModels) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeviceModelList, err error)

List takes label and field selectors, and returns the list of DeviceModels that match those selectors.

func (*FakeDeviceModels) Patch

func (c *FakeDeviceModels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.DeviceModel, err error)

Patch applies the patch and returns the patched deviceModel.

func (*FakeDeviceModels) Update

func (c *FakeDeviceModels) Update(ctx context.Context, deviceModel *v1beta1.DeviceModel, opts v1.UpdateOptions) (result *v1beta1.DeviceModel, err error)

Update takes the representation of a deviceModel and updates it. Returns the server's representation of the deviceModel, and an error, if there is any.

func (*FakeDeviceModels) Watch

Watch returns a watch.Interface that watches the requested deviceModels.

type FakeDevices

type FakeDevices struct {
	Fake *FakeDevicesV1beta1
	// contains filtered or unexported fields
}

FakeDevices implements DeviceInterface

func (*FakeDevices) Create

func (c *FakeDevices) Create(ctx context.Context, device *v1beta1.Device, opts v1.CreateOptions) (result *v1beta1.Device, err error)

Create takes the representation of a device and creates it. Returns the server's representation of the device, and an error, if there is any.

func (*FakeDevices) Delete

func (c *FakeDevices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the device and deletes it. Returns an error if one occurs.

func (*FakeDevices) DeleteCollection

func (c *FakeDevices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDevices) Get

func (c *FakeDevices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Device, err error)

Get takes name of the device, and returns the corresponding device object, and an error if there is any.

func (*FakeDevices) List

func (c *FakeDevices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeviceList, err error)

List takes label and field selectors, and returns the list of Devices that match those selectors.

func (*FakeDevices) Patch

func (c *FakeDevices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Device, err error)

Patch applies the patch and returns the patched device.

func (*FakeDevices) Update

func (c *FakeDevices) Update(ctx context.Context, device *v1beta1.Device, opts v1.UpdateOptions) (result *v1beta1.Device, err error)

Update takes the representation of a device and updates it. Returns the server's representation of the device, and an error, if there is any.

func (*FakeDevices) UpdateStatus

func (c *FakeDevices) UpdateStatus(ctx context.Context, device *v1beta1.Device, opts v1.UpdateOptions) (*v1beta1.Device, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeDevices) Watch

func (c *FakeDevices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested devices.

type FakeDevicesV1beta1

type FakeDevicesV1beta1 struct {
	*testing.Fake
}

func (*FakeDevicesV1beta1) DeviceModels

func (c *FakeDevicesV1beta1) DeviceModels(namespace string) v1beta1.DeviceModelInterface

func (*FakeDevicesV1beta1) Devices

func (c *FakeDevicesV1beta1) Devices(namespace string) v1beta1.DeviceInterface

func (*FakeDevicesV1beta1) RESTClient

func (c *FakeDevicesV1beta1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL