fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 FakeZookeeperClusters

type FakeZookeeperClusters struct {
	Fake *FakeZookeeperV1
	// contains filtered or unexported fields
}

FakeZookeeperClusters implements ZookeeperClusterInterface

func (*FakeZookeeperClusters) Create

func (c *FakeZookeeperClusters) Create(ctx context.Context, zookeeperCluster *v1.ZookeeperCluster, opts metav1.CreateOptions) (result *v1.ZookeeperCluster, err error)

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

func (*FakeZookeeperClusters) Delete

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

func (*FakeZookeeperClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeZookeeperClusters) Get

func (c *FakeZookeeperClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ZookeeperCluster, err error)

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

func (*FakeZookeeperClusters) List

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

func (*FakeZookeeperClusters) Patch

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

Patch applies the patch and returns the patched zookeeperCluster.

func (*FakeZookeeperClusters) Update

func (c *FakeZookeeperClusters) Update(ctx context.Context, zookeeperCluster *v1.ZookeeperCluster, opts metav1.UpdateOptions) (result *v1.ZookeeperCluster, err error)

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

func (*FakeZookeeperClusters) UpdateStatus

func (c *FakeZookeeperClusters) UpdateStatus(ctx context.Context, zookeeperCluster *v1.ZookeeperCluster, opts metav1.UpdateOptions) (*v1.ZookeeperCluster, error)

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

func (*FakeZookeeperClusters) Watch

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

type FakeZookeeperV1

type FakeZookeeperV1 struct {
	*testing.Fake
}

func (*FakeZookeeperV1) RESTClient

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

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

func (*FakeZookeeperV1) ZookeeperClusters

func (c *FakeZookeeperV1) ZookeeperClusters(namespace string) v1.ZookeeperClusterInterface

Jump to

Keyboard shortcuts

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