func (c *FakeRedisDestinations) Create(ctx context.Context, redisDestination *v1alpha1.RedisDestination, opts v1.CreateOptions) (result *v1alpha1.RedisDestination, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(redisdestinationsResource, c.ns, redisDestination), &v1alpha1.RedisDestination{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.RedisDestination), err
}
Create takes the representation of a redisDestination and creates it.  Returns the server's representation of the redisDestination, and an error, if there is any.
package fake
import (
	"context"
	v1alpha1 "github.com/aeraki-framework/aeraki/client-go/pkg/apis/redis/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 FakeRedisDestinations struct {
	Fake *FakeRedisV1alpha1
	ns   string
}
var redisdestinationsResource = schema.GroupVersionResource{Group: "redis.aeraki.io", Version: "v1alpha1", Resource: "redisdestinations"}
var redisdestinationsKind = schema.GroupVersionKind{Group: "redis.aeraki.io", Version: "v1alpha1", Kind: "RedisDestination"}
func (c *FakeRedisDestinations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisDestination, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(redisdestinationsResource, c.ns, name), &v1alpha1.RedisDestination{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.RedisDestination), err
}
func (c *FakeRedisDestinations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisDestinationList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(redisdestinationsResource, redisdestinationsKind, c.ns, opts), &v1alpha1.RedisDestinationList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.RedisDestinationList{ListMeta: obj.(*v1alpha1.RedisDestinationList).ListMeta}
	for _, item := range obj.(*v1alpha1.RedisDestinationList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeRedisDestinations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(redisdestinationsResource, c.ns, opts))
}