func NewForConfig(c *rest.Config) (*AuditregistrationV1alpha1Client, error) {
	config := *c
	if err := setConfigDefaults(&config); err != nil {
		return nil, err
	}
	client, err := rest.RESTClientFor(&config)
	if err != nil {
		return nil, err
	}
	return &AuditregistrationV1alpha1Client{client}, nil
}
NewForConfig creates a new AuditregistrationV1alpha1Client for the given config.
package v1alpha1
import (
	v1alpha1 "k8s.io/api/auditregistration/v1alpha1"
	"k8s.io/client-go/kubernetes/scheme"
	rest "k8s.io/client-go/rest"
)
type AuditregistrationV1alpha1Interface interface {
	RESTClient() rest.Interface
	AuditSinksGetter
}
type AuditregistrationV1alpha1Client struct {
	restClient rest.Interface
}
func (c *AuditregistrationV1alpha1Client) AuditSinks() AuditSinkInterface {
	return newAuditSinks(c)
}