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
}
List takes label and field selectors, and returns the list of RedisFailovers that match those selectors.
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
}