func (cm *ClusterManager) GenClient() error {
	cl, err := client.NewDefaultClient(cm.Config)
	if err != nil {
		return err
	}
	cm.Client = cl
	return nil
}
GenClient is used to generate a client to interact with the cluster
package rtfscluster
import (
	"context"
	"fmt"
	gocid "github.com/ipfs/go-cid"
	"github.com/ipfs/ipfs-cluster/api"
	"github.com/ipfs/ipfs-cluster/api/rest/client"
)
type ClusterManager struct {
	Config *client.Config
	Client client.Client
}
func Initialize(ctx context.Context, hostAddress, hostPort string) (*ClusterManager, error) {
	cm := ClusterManager{}
	cm.GenRestAPIConfig()
	if hostAddress != "" && hostPort != "" {
		cm.Config.Host = hostAddress
		cm.Config.Port = hostPort
	}
	if err := cm.GenClient(); err != nil {
		return nil, err
	}
	if _, err := cm.ListPeers(ctx); err != nil {
		return nil, err
	}
	return &cm, nil
}
func (cm *ClusterManager) GenRestAPIConfig() {
	cm.Config = &client.Config{}
}