func NewForConfigOrDie(c *rest.Config) *DatabasesV1Client {
	client, err := NewForConfig(c)
	if err != nil {
		panic(err)
	}
	return client
}
NewForConfigOrDie creates a new DatabasesV1Client for the given config and
panics if there is an error in the config.
package v1
import (
	v1 "github.com/spotahome/redis-operator/api/redisfailover/v1"
	"github.com/spotahome/redis-operator/client/k8s/clientset/versioned/scheme"
	serializer "k8s.io/apimachinery/pkg/runtime/serializer"
	rest "k8s.io/client-go/rest"
)
type DatabasesV1Interface interface {
	RESTClient() rest.Interface
	RedisFailoversGetter
}
type DatabasesV1Client struct {
	restClient rest.Interface
}
func (c *DatabasesV1Client) RedisFailovers(namespace string) RedisFailoverInterface {
	return newRedisFailovers(c, namespace)
}
func NewForConfig(c *rest.Config) (*DatabasesV1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &DatabasesV1Client{client}, nil
}