func (c *FakeTikvClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(tikvclustersResource, c.ns, listOptions)
	_, err := c.Fake.Invokes(action, &v1alpha1.TikvClusterList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	v1alpha1 "github.com/tikv/tikv-operator/pkg/apis/tikv/v1alpha1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeTikvClusters struct {
	Fake *FakeTikvV1alpha1
	ns   string
}
var tikvclustersResource = schema.GroupVersionResource{Group: "tikv.org", Version: "v1alpha1", Resource: "tikvclusters"}
var tikvclustersKind = schema.GroupVersionKind{Group: "tikv.org", Version: "v1alpha1", Kind: "TikvCluster"}
func (c *FakeTikvClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.TikvCluster, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(tikvclustersResource, c.ns, name), &v1alpha1.TikvCluster{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.TikvCluster), err
}
func (c *FakeTikvClusters) List(opts v1.ListOptions) (result *v1alpha1.TikvClusterList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(tikvclustersResource, tikvclustersKind, c.ns, opts), &v1alpha1.TikvClusterList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.TikvClusterList{ListMeta: obj.(*v1alpha1.TikvClusterList).ListMeta}
	for _, item := range obj.(*v1alpha1.TikvClusterList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeTikvClusters) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(tikvclustersResource, c.ns, opts))
}
func (c *FakeTikvClusters) Create(tikvCluster *v1alpha1.TikvCluster) (result *v1alpha1.TikvCluster, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(tikvclustersResource, c.ns, tikvCluster), &v1alpha1.TikvCluster{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.TikvCluster), err
}
func (c *FakeTikvClusters) Update(tikvCluster *v1alpha1.TikvCluster) (result *v1alpha1.TikvCluster, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(tikvclustersResource, c.ns, tikvCluster), &v1alpha1.TikvCluster{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.TikvCluster), err
}
func (c *FakeTikvClusters) UpdateStatus(tikvCluster *v1alpha1.TikvCluster) (*v1alpha1.TikvCluster, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(tikvclustersResource, "status", c.ns, tikvCluster), &v1alpha1.TikvCluster{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.TikvCluster), err
}
func (c *FakeTikvClusters) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(tikvclustersResource, c.ns, name), &v1alpha1.TikvCluster{})
	return err
}