Documentation ¶
Index ¶
- func CreateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func CreateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster
- func DeleteClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func DeleteClusterMocked(t *testing.T, clusterIn *types.Cluster)
- func EmptyClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func EmptyClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func EmptyClusterMocked(t *testing.T, clusterIn *types.Cluster)
- func GetClusterListFailErrMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster
- func GetClusterListFailJSONMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster
- func GetClusterListFailStatusMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster
- func GetClusterListMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster
- func StartClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func StartClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func StartClusterMocked(t *testing.T, clusterIn *types.Cluster)
- func StopClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)
- func StopClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)
- func StopClusterMocked(t *testing.T, clusterIn *types.Cluster)
- type ClusterService
- func (cl *ClusterService) CreateCluster(clusterVector *map[string]interface{}) (cluster *types.Cluster, err error)
- func (cl *ClusterService) DeleteCluster(ID string) (err error)
- func (cl *ClusterService) EmptyCluster(clusterVector *map[string]interface{}, ID string) (err error)
- func (cl *ClusterService) GetClusterList() (clusters []types.Cluster, err error)
- func (cl *ClusterService) StartCluster(clusterVector *map[string]interface{}, ID string) (err error)
- func (cl *ClusterService) StopCluster(clusterVector *map[string]interface{}, ID string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterFailErrMocked ¶
CreateClusterFailErrMocked test mocked function
func CreateClusterFailJSONMocked ¶
CreateClusterFailJSONMocked test mocked function
func CreateClusterFailStatusMocked ¶
CreateClusterFailStatusMocked test mocked function
func CreateClusterMocked ¶
CreateClusterMocked test mocked function
func DeleteClusterFailErrMocked ¶
DeleteClusterFailErrMocked test mocked function
func DeleteClusterFailStatusMocked ¶
DeleteClusterFailStatusMocked test mocked function
func DeleteClusterMocked ¶
DeleteClusterMocked test mocked function
func EmptyClusterFailErrMocked ¶
EmptyClusterFailErrMocked test mocked function
func EmptyClusterFailStatusMocked ¶
EmptyClusterFailStatusMocked test mocked function
func EmptyClusterMocked ¶
EmptyClusterMocked test mocked function
func GetClusterListFailErrMocked ¶
GetClusterListFailErrMocked test mocked function
func GetClusterListFailJSONMocked ¶
GetClusterListFailJSONMocked test mocked function
func GetClusterListFailStatusMocked ¶
GetClusterListFailStatusMocked test mocked function
func GetClusterListMocked ¶
GetClusterListMocked test mocked function
func StartClusterFailErrMocked ¶
StartClusterFailErrMocked test mocked function
func StartClusterFailStatusMocked ¶
StartClusterFailStatusMocked test mocked function
func StartClusterMocked ¶
StartClusterMocked test mocked function
func StopClusterFailErrMocked ¶
StopClusterFailErrMocked test mocked function
func StopClusterFailStatusMocked ¶
StopClusterFailStatusMocked test mocked function
Types ¶
type ClusterService ¶
type ClusterService struct {
// contains filtered or unexported fields
}
ClusterService manages cluster operations
func NewClusterService ¶
func NewClusterService(concertoService utils.ConcertoService) (*ClusterService, error)
NewClusterService returns a Concerto cluster service
func (*ClusterService) CreateCluster ¶
func (cl *ClusterService) CreateCluster(clusterVector *map[string]interface{}) (cluster *types.Cluster, err error)
CreateCluster creates a cluster
func (*ClusterService) DeleteCluster ¶
func (cl *ClusterService) DeleteCluster(ID string) (err error)
DeleteCluster deletes a cluster by its ID
func (*ClusterService) EmptyCluster ¶
func (cl *ClusterService) EmptyCluster(clusterVector *map[string]interface{}, ID string) (err error)
EmptyCluster empties a cluster by its ID
func (*ClusterService) GetClusterList ¶
func (cl *ClusterService) GetClusterList() (clusters []types.Cluster, err error)
GetClusterList returns the list of clusters as an array of Cluster
func (*ClusterService) StartCluster ¶
func (cl *ClusterService) StartCluster(clusterVector *map[string]interface{}, ID string) (err error)
StartCluster starts a cluster by its ID
func (*ClusterService) StopCluster ¶
func (cl *ClusterService) StopCluster(clusterVector *map[string]interface{}, ID string) (err error)
StopCluster stops a cluster by its ID