func NewForConfig(c *rest.Config) (*SamplecontrollerV1alpha1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &SamplecontrollerV1alpha1Client{client}, nil
}
NewForConfig creates a new SamplecontrollerV1alpha1Client for the given config.
package v1alpha1
import (
	rest "k8s.io/client-go/rest"
	v1alpha1 "github.com/lilic/instrumently/pkg/apis/samplecontroller/v1alpha1"
	"github.com/lilic/instrumently/pkg/generated/clientset/versioned/scheme"
)
type SamplecontrollerV1alpha1Interface interface {
	RESTClient() rest.Interface
	FoosGetter
}
type SamplecontrollerV1alpha1Client struct {
	restClient rest.Interface
}
func (c *SamplecontrollerV1alpha1Client) Foos(namespace string) FooInterface {
	return newFoos(c, namespace)
}