fake

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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 FakeM3DBClusters

type FakeM3DBClusters struct {
	Fake *FakeOperatorV1alpha1
	// contains filtered or unexported fields
}

FakeM3DBClusters implements M3DBClusterInterface

func (*FakeM3DBClusters) Create

func (c *FakeM3DBClusters) Create(ctx context.Context, m3DBCluster *v1alpha1.M3DBCluster, opts v1.CreateOptions) (result *v1alpha1.M3DBCluster, err error)

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

func (*FakeM3DBClusters) Delete

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

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

func (*FakeM3DBClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeM3DBClusters) Get

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

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

func (*FakeM3DBClusters) List

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

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

func (*FakeM3DBClusters) Patch

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

Patch applies the patch and returns the patched m3DBCluster.

func (*FakeM3DBClusters) Update

func (c *FakeM3DBClusters) Update(ctx context.Context, m3DBCluster *v1alpha1.M3DBCluster, opts v1.UpdateOptions) (result *v1alpha1.M3DBCluster, err error)

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

func (*FakeM3DBClusters) UpdateStatus

func (c *FakeM3DBClusters) UpdateStatus(ctx context.Context, m3DBCluster *v1alpha1.M3DBCluster, opts v1.UpdateOptions) (*v1alpha1.M3DBCluster, error)

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

func (*FakeM3DBClusters) Watch

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

type FakeOperatorV1alpha1

type FakeOperatorV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperatorV1alpha1) M3DBClusters

func (c *FakeOperatorV1alpha1) M3DBClusters(namespace string) v1alpha1.M3DBClusterInterface

func (*FakeOperatorV1alpha1) RESTClient

func (c *FakeOperatorV1alpha1) 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
y or Y : Canonical URL