cluster

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterFailErrMocked

func CreateClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailErrMocked test mocked function

func CreateClusterFailJSONMocked

func CreateClusterFailJSONMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailJSONMocked test mocked function

func CreateClusterFailStatusMocked

func CreateClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterFailStatusMocked test mocked function

func CreateClusterMocked

func CreateClusterMocked(t *testing.T, clusterIn *types.Cluster) *types.Cluster

CreateClusterMocked test mocked function

func DeleteClusterFailErrMocked

func DeleteClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterFailErrMocked test mocked function

func DeleteClusterFailStatusMocked

func DeleteClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterFailStatusMocked test mocked function

func DeleteClusterMocked

func DeleteClusterMocked(t *testing.T, clusterIn *types.Cluster)

DeleteClusterMocked test mocked function

func EmptyClusterFailErrMocked

func EmptyClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

EmptyClusterFailErrMocked test mocked function

func EmptyClusterFailStatusMocked

func EmptyClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

EmptyClusterFailStatusMocked test mocked function

func EmptyClusterMocked

func EmptyClusterMocked(t *testing.T, clusterIn *types.Cluster)

EmptyClusterMocked test mocked function

func GetClusterListFailErrMocked

func GetClusterListFailErrMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster

GetClusterListFailErrMocked test mocked function

func GetClusterListFailJSONMocked

func GetClusterListFailJSONMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster

GetClusterListFailJSONMocked test mocked function

func GetClusterListFailStatusMocked

func GetClusterListFailStatusMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster

GetClusterListFailStatusMocked test mocked function

func GetClusterListMocked

func GetClusterListMocked(t *testing.T, clustersIn *[]types.Cluster) *[]types.Cluster

GetClusterListMocked test mocked function

func StartClusterFailErrMocked

func StartClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

StartClusterFailErrMocked test mocked function

func StartClusterFailStatusMocked

func StartClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

StartClusterFailStatusMocked test mocked function

func StartClusterMocked

func StartClusterMocked(t *testing.T, clusterIn *types.Cluster)

StartClusterMocked test mocked function

func StopClusterFailErrMocked

func StopClusterFailErrMocked(t *testing.T, clusterIn *types.Cluster)

StopClusterFailErrMocked test mocked function

func StopClusterFailStatusMocked

func StopClusterFailStatusMocked(t *testing.T, clusterIn *types.Cluster)

StopClusterFailStatusMocked test mocked function

func StopClusterMocked

func StopClusterMocked(t *testing.T, clusterIn *types.Cluster)

StopClusterMocked 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL