func NewForConfigOrDie(c *rest.Config) *NodesetV1alpha1Client {
	client, err := NewForConfig(c)
	if err != nil {
		panic(err)
	}
	return client
}
NewForConfigOrDie creates a new NodesetV1alpha1Client for the given config and
panics if there is an error in the config.
package v1alpha1
import (
	"github.com/kube-node/nodeset/pkg/client/clientset/versioned/scheme"
	v1alpha1 "github.com/kube-node/nodeset/pkg/nodeset/v1alpha1"
	serializer "k8s.io/apimachinery/pkg/runtime/serializer"
	rest "k8s.io/client-go/rest"
)
type NodesetV1alpha1Interface interface {
	RESTClient() rest.Interface
	NodeClassesGetter
	NodeSetsGetter
}
type NodesetV1alpha1Client struct {
	restClient rest.Interface
}
func (c *NodesetV1alpha1Client) NodeClasses() NodeClassInterface {
	return newNodeClasses(c)
}
func (c *NodesetV1alpha1Client) NodeSets() NodeSetInterface {
	return newNodeSets(c)
}
func NewForConfig(c *rest.Config) (*NodesetV1alpha1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &NodesetV1alpha1Client{client}, nil
}