func (c *FakeRedisFailovers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(redisfailoversResource, c.ns, listOptions)
	_, err := c.Fake.Invokes(action, &redisfailover_v1.RedisFailoverList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	redisfailover_v1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
	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 FakeRedisFailovers struct {
	Fake *FakeDatabasesV1
	ns   string
}
var redisfailoversResource = schema.GroupVersionResource{Group: "databases.spotahome.com", Version: "v1", Resource: "redisfailovers"}
var redisfailoversKind = schema.GroupVersionKind{Group: "databases.spotahome.com", Version: "v1", Kind: "RedisFailover"}
func (c *FakeRedisFailovers) Get(name string, options v1.GetOptions) (result *redisfailover_v1.RedisFailover, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(redisfailoversResource, c.ns, name), &redisfailover_v1.RedisFailover{})
	if obj == nil {
		return nil, err
	}
	return obj.(*redisfailover_v1.RedisFailover), err
}
func (c *FakeRedisFailovers) List(opts v1.ListOptions) (result *redisfailover_v1.RedisFailoverList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(redisfailoversResource, redisfailoversKind, c.ns, opts), &redisfailover_v1.RedisFailoverList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &redisfailover_v1.RedisFailoverList{ListMeta: obj.(*redisfailover_v1.RedisFailoverList).ListMeta}
	for _, item := range obj.(*redisfailover_v1.RedisFailoverList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeRedisFailovers) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(redisfailoversResource, c.ns, opts))
}
func (c *FakeRedisFailovers) Create(redisFailover *redisfailover_v1.RedisFailover) (result *redisfailover_v1.RedisFailover, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(redisfailoversResource, c.ns, redisFailover), &redisfailover_v1.RedisFailover{})
	if obj == nil {
		return nil, err
	}
	return obj.(*redisfailover_v1.RedisFailover), err
}
func (c *FakeRedisFailovers) Update(redisFailover *redisfailover_v1.RedisFailover) (result *redisfailover_v1.RedisFailover, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(redisfailoversResource, c.ns, redisFailover), &redisfailover_v1.RedisFailover{})
	if obj == nil {
		return nil, err
	}
	return obj.(*redisfailover_v1.RedisFailover), err
}
func (c *FakeRedisFailovers) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(redisfailoversResource, c.ns, name), &redisfailover_v1.RedisFailover{})
	return err
}