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 FakeDataboxV1alpha1

type FakeDataboxV1alpha1 struct {
	*testing.Fake
}

func (*FakeDataboxV1alpha1) EdgeDevices

func (c *FakeDataboxV1alpha1) EdgeDevices(namespace string) v1alpha1.EdgeDeviceInterface

func (*FakeDataboxV1alpha1) EdgeOrders

func (c *FakeDataboxV1alpha1) EdgeOrders(namespace string) v1alpha1.EdgeOrderInterface

func (*FakeDataboxV1alpha1) RESTClient

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

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

type FakeEdgeDevices

type FakeEdgeDevices struct {
	Fake *FakeDataboxV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeDevices implements EdgeDeviceInterface

func (*FakeEdgeDevices) Create

func (c *FakeEdgeDevices) Create(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.CreateOptions) (result *v1alpha1.EdgeDevice, err error)

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

func (*FakeEdgeDevices) Delete

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

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

func (*FakeEdgeDevices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeDevices) Get

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

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

func (*FakeEdgeDevices) List

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

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

func (*FakeEdgeDevices) Patch

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

Patch applies the patch and returns the patched edgeDevice.

func (*FakeEdgeDevices) Update

func (c *FakeEdgeDevices) Update(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.UpdateOptions) (result *v1alpha1.EdgeDevice, err error)

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

func (*FakeEdgeDevices) UpdateStatus

func (c *FakeEdgeDevices) UpdateStatus(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.UpdateOptions) (*v1alpha1.EdgeDevice, error)

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

func (*FakeEdgeDevices) Watch

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

type FakeEdgeOrders

type FakeEdgeOrders struct {
	Fake *FakeDataboxV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeOrders implements EdgeOrderInterface

func (*FakeEdgeOrders) Create

func (c *FakeEdgeOrders) Create(ctx context.Context, edgeOrder *v1alpha1.EdgeOrder, opts v1.CreateOptions) (result *v1alpha1.EdgeOrder, err error)

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

func (*FakeEdgeOrders) Delete

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

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

func (*FakeEdgeOrders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeOrders) Get

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

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

func (*FakeEdgeOrders) List

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

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

func (*FakeEdgeOrders) Patch

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

Patch applies the patch and returns the patched edgeOrder.

func (*FakeEdgeOrders) Update

func (c *FakeEdgeOrders) Update(ctx context.Context, edgeOrder *v1alpha1.EdgeOrder, opts v1.UpdateOptions) (result *v1alpha1.EdgeOrder, err error)

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

func (*FakeEdgeOrders) UpdateStatus

func (c *FakeEdgeOrders) UpdateStatus(ctx context.Context, edgeOrder *v1alpha1.EdgeOrder, opts v1.UpdateOptions) (*v1alpha1.EdgeOrder, error)

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

func (*FakeEdgeOrders) Watch

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

Jump to

Keyboard shortcuts

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