fake

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 FakeDeviceNodes

type FakeDeviceNodes struct {
	Fake *FakeLocalV1alpha1
	// contains filtered or unexported fields
}

FakeDeviceNodes implements DeviceNodeInterface

func (*FakeDeviceNodes) Create

func (c *FakeDeviceNodes) Create(ctx context.Context, deviceNode *v1alpha1.DeviceNode, opts v1.CreateOptions) (result *v1alpha1.DeviceNode, err error)

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

func (*FakeDeviceNodes) Delete

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

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

func (*FakeDeviceNodes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeviceNodes) Get

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

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

func (*FakeDeviceNodes) List

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

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

func (*FakeDeviceNodes) Patch

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

Patch applies the patch and returns the patched deviceNode.

func (*FakeDeviceNodes) Update

func (c *FakeDeviceNodes) Update(ctx context.Context, deviceNode *v1alpha1.DeviceNode, opts v1.UpdateOptions) (result *v1alpha1.DeviceNode, err error)

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

func (*FakeDeviceNodes) Watch

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

type FakeDeviceVolumes

type FakeDeviceVolumes struct {
	Fake *FakeLocalV1alpha1
	// contains filtered or unexported fields
}

FakeDeviceVolumes implements DeviceVolumeInterface

func (*FakeDeviceVolumes) Create

func (c *FakeDeviceVolumes) Create(ctx context.Context, deviceVolume *v1alpha1.DeviceVolume, opts v1.CreateOptions) (result *v1alpha1.DeviceVolume, err error)

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

func (*FakeDeviceVolumes) Delete

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

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

func (*FakeDeviceVolumes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeviceVolumes) Get

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

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

func (*FakeDeviceVolumes) List

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

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

func (*FakeDeviceVolumes) Patch

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

Patch applies the patch and returns the patched deviceVolume.

func (*FakeDeviceVolumes) Update

func (c *FakeDeviceVolumes) Update(ctx context.Context, deviceVolume *v1alpha1.DeviceVolume, opts v1.UpdateOptions) (result *v1alpha1.DeviceVolume, err error)

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

func (*FakeDeviceVolumes) UpdateStatus

func (c *FakeDeviceVolumes) UpdateStatus(ctx context.Context, deviceVolume *v1alpha1.DeviceVolume, opts v1.UpdateOptions) (*v1alpha1.DeviceVolume, error)

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

func (*FakeDeviceVolumes) Watch

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

type FakeLocalV1alpha1

type FakeLocalV1alpha1 struct {
	*testing.Fake
}

func (*FakeLocalV1alpha1) DeviceNodes

func (c *FakeLocalV1alpha1) DeviceNodes(namespace string) v1alpha1.DeviceNodeInterface

func (*FakeLocalV1alpha1) DeviceVolumes

func (c *FakeLocalV1alpha1) DeviceVolumes(namespace string) v1alpha1.DeviceVolumeInterface

func (*FakeLocalV1alpha1) RESTClient

func (c *FakeLocalV1alpha1) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL