// CreateCluster creates a cluster for authenticated user.
CreateCluster creates a cluster for authenticated user.
// CreateCluster creates a cluster for authenticated user .
func (c *Client) CreateCluster(opt CreateClusterOption) (*Cluster, error) {
	body, err := json.Marshal(&opt)
	if err != nil {
		return nil, err
	}
	cluster := new(Cluster)
	return cluster, c.getParsedResponse("POST", "/user/clusters", jsonHeader, bytes.NewReader(body), cluster)
}
func ( c * Client ) CreateCluster ( opt CreateClusterOption ) ( * Cluster , error ) { body , err := json . Marshal ( & opt ) if err != nil { return nil , err } cluster := new ( Cluster ) return cluster , c . getParsedResponse ( " " , " " , jsonHeader , bytes . NewReader ( body ) , cluster ) }
CreateCluster creates a cluster for authenticated user.
CreateCluster creates a cluster for authenticated user .