Documentation ¶
Index ¶
- type DBClient
- func (client *DBClient) CreateCluster(cluster *model.Cluster) error
- func (client *DBClient) DeleteCluster(clusterName string) error
- func (client *DBClient) GetClusterByID(clusterID int64) (*model.Cluster, error)
- func (client *DBClient) GetClusterByName(clusterName string) (*model.Cluster, error)
- func (client *DBClient) ListCluster() (*[]model.Cluster, error)
- func (client *DBClient) ListClusterByType(clusterType string) (*[]model.Cluster, error)
- func (client *DBClient) UpdateCluster(cluster *model.Cluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
func (*DBClient) CreateCluster ¶
CreateCluster create cluster
func (*DBClient) DeleteCluster ¶
DeleteCluster delete cluster
func (*DBClient) GetClusterByID ¶
GetClusterByID get cluster by name
func (*DBClient) GetClusterByName ¶
GetClusterByName get cluster by name
func (*DBClient) ListCluster ¶
ListCluster list cluster
func (*DBClient) ListClusterByType ¶
ListClusterByType list cluster filter by cluster type
Click to show internal directories.
Click to hide internal directories.