Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePingcapV1alpha1
- type FakeTidbClusters
- func (c *FakeTidbClusters) Create(tidbCluster *v1alpha1.TidbCluster) (result *v1alpha1.TidbCluster, err error)
- func (c *FakeTidbClusters) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeTidbClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeTidbClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.TidbCluster, err error)
- func (c *FakeTidbClusters) List(opts v1.ListOptions) (result *v1alpha1.TidbClusterList, err error)
- func (c *FakeTidbClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.TidbCluster, err error)
- func (c *FakeTidbClusters) Update(tidbCluster *v1alpha1.TidbCluster) (result *v1alpha1.TidbCluster, err error)
- func (c *FakeTidbClusters) UpdateStatus(tidbCluster *v1alpha1.TidbCluster) (*v1alpha1.TidbCluster, error)
- func (c *FakeTidbClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePingcapV1alpha1 ¶
func (*FakePingcapV1alpha1) RESTClient ¶
func (c *FakePingcapV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakePingcapV1alpha1) TidbClusters ¶
func (c *FakePingcapV1alpha1) TidbClusters(namespace string) v1alpha1.TidbClusterInterface
type FakeTidbClusters ¶
type FakeTidbClusters struct { Fake *FakePingcapV1alpha1 // contains filtered or unexported fields }
FakeTidbClusters implements TidbClusterInterface
func (*FakeTidbClusters) Create ¶
func (c *FakeTidbClusters) Create(tidbCluster *v1alpha1.TidbCluster) (result *v1alpha1.TidbCluster, err error)
Create takes the representation of a tidbCluster and creates it. Returns the server's representation of the tidbCluster, and an error, if there is any.
func (*FakeTidbClusters) Delete ¶
func (c *FakeTidbClusters) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the tidbCluster and deletes it. Returns an error if one occurs.
func (*FakeTidbClusters) DeleteCollection ¶
func (c *FakeTidbClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTidbClusters) Get ¶
func (c *FakeTidbClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.TidbCluster, err error)
Get takes name of the tidbCluster, and returns the corresponding tidbCluster object, and an error if there is any.
func (*FakeTidbClusters) List ¶
func (c *FakeTidbClusters) List(opts v1.ListOptions) (result *v1alpha1.TidbClusterList, err error)
List takes label and field selectors, and returns the list of TidbClusters that match those selectors.
func (*FakeTidbClusters) Patch ¶
func (c *FakeTidbClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.TidbCluster, err error)
Patch applies the patch and returns the patched tidbCluster.
func (*FakeTidbClusters) Update ¶
func (c *FakeTidbClusters) Update(tidbCluster *v1alpha1.TidbCluster) (result *v1alpha1.TidbCluster, err error)
Update takes the representation of a tidbCluster and updates it. Returns the server's representation of the tidbCluster, and an error, if there is any.
func (*FakeTidbClusters) UpdateStatus ¶
func (c *FakeTidbClusters) UpdateStatus(tidbCluster *v1alpha1.TidbCluster) (*v1alpha1.TidbCluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTidbClusters) Watch ¶
func (c *FakeTidbClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested tidbClusters.