func NewForConfig(c *rest.Config) (*ClusterregistryV1alpha1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &ClusterregistryV1alpha1Client{client}, nil
}
NewForConfig creates a new ClusterregistryV1alpha1Client for the given config.
package v1alpha1
import (
	"k8s.io/apimachinery/pkg/runtime"
	serializer "k8s.io/apimachinery/pkg/runtime/serializer"
	rest "k8s.io/client-go/rest"
	v1alpha1 "github.com/alauda/captain/pkg/clusterregistry/apis/clusterregistry/v1alpha1"
	scheme "github.com/alauda/captain/pkg/clusterregistry/client/clientset/versioned/scheme"
)
type ClusterregistryV1alpha1Interface interface {
	RESTClient() rest.Interface
	ClustersGetter
}
type ClusterregistryV1alpha1Client struct {
	restClient rest.Interface
}
func (c *ClusterregistryV1alpha1Client) Clusters(namespace string) ClusterInterface {
	return newClusters(c, namespace)
}