fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 10 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 FakeCloudiotV1alpha1

type FakeCloudiotV1alpha1 struct {
	*testing.Fake
}

func (*FakeCloudiotV1alpha1) Devices

func (c *FakeCloudiotV1alpha1) Devices(namespace string) v1alpha1.DeviceInterface

func (*FakeCloudiotV1alpha1) RESTClient

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

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

func (*FakeCloudiotV1alpha1) Registries

func (c *FakeCloudiotV1alpha1) Registries(namespace string) v1alpha1.RegistryInterface

type FakeDevices

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

FakeDevices implements DeviceInterface

func (*FakeDevices) Create

func (c *FakeDevices) Create(ctx context.Context, device *v1alpha1.Device, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Device, err error)

Patch applies the patch and returns the patched device.

func (*FakeDevices) Update

func (c *FakeDevices) Update(ctx context.Context, device *v1alpha1.Device, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Device, opts v1.UpdateOptions) (*v1alpha1.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 FakeRegistries

type FakeRegistries struct {
	Fake *FakeCloudiotV1alpha1
	// contains filtered or unexported fields
}

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(ctx context.Context, registry *v1alpha1.Registry, opts v1.CreateOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) Delete

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

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

func (*FakeRegistries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRegistries) Get

func (c *FakeRegistries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) List

func (c *FakeRegistries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RegistryList, err error)

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

func (*FakeRegistries) Patch

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

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(ctx context.Context, registry *v1alpha1.Registry, opts v1.UpdateOptions) (result *v1alpha1.Registry, err error)

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

func (*FakeRegistries) UpdateStatus

func (c *FakeRegistries) UpdateStatus(ctx context.Context, registry *v1alpha1.Registry, opts v1.UpdateOptions) (*v1alpha1.Registry, error)

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

func (*FakeRegistries) Watch

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

Jump to

Keyboard shortcuts

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