func (c *kubernetesClusters) Create(kubernetesCluster *v1.KubernetesCluster) (result *v1.KubernetesCluster, err error) {
	result = &v1.KubernetesCluster{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("kubernetesclusters").
		Body(kubernetesCluster).
		Do().
		Into(result)
	return
}
Create takes the representation of a kubernetesCluster and creates it.  Returns the server's representation of the kubernetesCluster, and an error, if there is any.
package v1
import (
	"time"
	v1 "github.com/gosoon/kubernetes-operator/pkg/apis/ecs/v1"
	scheme "github.com/gosoon/kubernetes-operator/pkg/client/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type KubernetesClustersGetter interface {
	KubernetesClusters(namespace string) KubernetesClusterInterface
}
type KubernetesClusterInterface interface {
	Create(*v1.KubernetesCluster) (*v1.KubernetesCluster, error)
	Update(*v1.KubernetesCluster) (*v1.KubernetesCluster, error)
	UpdateStatus(*v1.KubernetesCluster) (*v1.KubernetesCluster, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.KubernetesCluster, error)
	List(opts metav1.ListOptions) (*v1.KubernetesClusterList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.KubernetesCluster, err error)
	KubernetesClusterExpansion
}
type kubernetesClusters struct {
	client rest.Interface
	ns     string
}
func newKubernetesClusters(c *EcsV1Client, namespace string) *kubernetesClusters {
	return &kubernetesClusters{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *kubernetesClusters) Get(name string, options metav1.GetOptions) (result *v1.KubernetesCluster, err error) {
	result = &v1.KubernetesCluster{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("kubernetesclusters").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *kubernetesClusters) List(opts metav1.ListOptions) (result *v1.KubernetesClusterList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.KubernetesClusterList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("kubernetesclusters").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
func (c *kubernetesClusters) Watch(opts metav1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("kubernetesclusters").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch()
}