fake

package
v0.11.0 Latest Latest
Warning

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

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

type FakeTopoV1beta1 struct {
	*testing.Fake
}

func (*FakeTopoV1beta1) RESTClient

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

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

func (*FakeTopoV1beta1) VitessTopoNodes

func (c *FakeTopoV1beta1) VitessTopoNodes(namespace string) v1beta1.VitessTopoNodeInterface

type FakeVitessTopoNodes

type FakeVitessTopoNodes struct {
	Fake *FakeTopoV1beta1
	// contains filtered or unexported fields
}

FakeVitessTopoNodes implements VitessTopoNodeInterface

func (*FakeVitessTopoNodes) Create

func (c *FakeVitessTopoNodes) Create(vitessTopoNode *v1beta1.VitessTopoNode) (result *v1beta1.VitessTopoNode, err error)

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

func (*FakeVitessTopoNodes) Delete

func (c *FakeVitessTopoNodes) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeVitessTopoNodes) DeleteCollection

func (c *FakeVitessTopoNodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVitessTopoNodes) Get

func (c *FakeVitessTopoNodes) Get(name string, options v1.GetOptions) (result *v1beta1.VitessTopoNode, err error)

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

func (*FakeVitessTopoNodes) List

func (c *FakeVitessTopoNodes) List(opts v1.ListOptions) (result *v1beta1.VitessTopoNodeList, err error)

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

func (*FakeVitessTopoNodes) Patch

func (c *FakeVitessTopoNodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.VitessTopoNode, err error)

Patch applies the patch and returns the patched vitessTopoNode.

func (*FakeVitessTopoNodes) Update

func (c *FakeVitessTopoNodes) Update(vitessTopoNode *v1beta1.VitessTopoNode) (result *v1beta1.VitessTopoNode, err error)

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

func (*FakeVitessTopoNodes) Watch

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

Jump to

Keyboard shortcuts

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