fake

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT 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 FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha1) MessageQueues

func (c *FakeCoreV1alpha1) MessageQueues(namespace string) v1alpha1.MessageQueueInterface

func (*FakeCoreV1alpha1) RESTClient

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

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

func (*FakeCoreV1alpha1) RdbDatas

func (c *FakeCoreV1alpha1) RdbDatas(namespace string) v1alpha1.RdbDataInterface

type FakeMessageQueues

type FakeMessageQueues struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeMessageQueues implements MessageQueueInterface

func (*FakeMessageQueues) Create

func (c *FakeMessageQueues) Create(ctx context.Context, messageQueue *v1alpha1.MessageQueue, opts v1.CreateOptions) (result *v1alpha1.MessageQueue, err error)

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

func (*FakeMessageQueues) Delete

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

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

func (*FakeMessageQueues) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMessageQueues) Get

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

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

func (*FakeMessageQueues) List

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

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

func (*FakeMessageQueues) Patch

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

Patch applies the patch and returns the patched messageQueue.

func (*FakeMessageQueues) Update

func (c *FakeMessageQueues) Update(ctx context.Context, messageQueue *v1alpha1.MessageQueue, opts v1.UpdateOptions) (result *v1alpha1.MessageQueue, err error)

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

func (*FakeMessageQueues) UpdateStatus

func (c *FakeMessageQueues) UpdateStatus(ctx context.Context, messageQueue *v1alpha1.MessageQueue, opts v1.UpdateOptions) (*v1alpha1.MessageQueue, error)

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

func (*FakeMessageQueues) Watch

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

type FakeRdbDatas

type FakeRdbDatas struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeRdbDatas implements RdbDataInterface

func (*FakeRdbDatas) Create

func (c *FakeRdbDatas) Create(ctx context.Context, rdbData *v1alpha1.RdbData, opts v1.CreateOptions) (result *v1alpha1.RdbData, err error)

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

func (*FakeRdbDatas) Delete

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

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

func (*FakeRdbDatas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRdbDatas) Get

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

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

func (*FakeRdbDatas) List

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

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

func (*FakeRdbDatas) Patch

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

Patch applies the patch and returns the patched rdbData.

func (*FakeRdbDatas) Update

func (c *FakeRdbDatas) Update(ctx context.Context, rdbData *v1alpha1.RdbData, opts v1.UpdateOptions) (result *v1alpha1.RdbData, err error)

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

func (*FakeRdbDatas) UpdateStatus

func (c *FakeRdbDatas) UpdateStatus(ctx context.Context, rdbData *v1alpha1.RdbData, opts v1.UpdateOptions) (*v1alpha1.RdbData, error)

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

func (*FakeRdbDatas) Watch

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

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

Jump to

Keyboard shortcuts

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