manager_clusters

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlaveTypeDevices                = "devices"
	SlaveTypeServices               = "services"
	ClustersSavePathPrefixFormat    = "/spongeregister/superbahnManager/clusters/%v/"
	ClustersResSavePathPrefixFormat = "/spongeregister/superbahnManager/clustersRes/%v/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClustersManager

type ClustersManager struct {
	// contains filtered or unexported fields
}

func NewClustersManager

func NewClustersManager(ctx context.Context, d ClustersRecorder, user, userToken string) *ClustersManager

func (*ClustersManager) BindNewResources

func (r *ClustersManager) BindNewResources(slaveGuid, slaveLevel, masterGuid string, slaveTypes int) error

func (*ClustersManager) DeleteCluster

func (r *ClustersManager) DeleteCluster(clusterGuid string) error

func (*ClustersManager) ExistCluster

func (r *ClustersManager) ExistCluster(clusterGuid string) bool

func (*ClustersManager) GetCluster

func (r *ClustersManager) GetCluster(guid string) *clusters.Cluster

func (*ClustersManager) GetRelationshipGraph

func (r *ClustersManager) GetRelationshipGraph(clusterGuid string) *clusters.Cluster

func (*ClustersManager) GetStatisticClusterInfo

func (r *ClustersManager) GetStatisticClusterInfo(clusterGuid string) *clusters.Cluster

func (*ClustersManager) ListCluster

func (r *ClustersManager) ListCluster() map[string]*clusters.Cluster

func (*ClustersManager) NewCluster

func (r *ClustersManager) NewCluster(s *strategies.Strategy) error

type ClustersRecorder

type ClustersRecorder interface {
	Put(string, string) error
	Get(string) ([]byte, error)
	GetWithPrefix(string) (map[string][]byte, error)
	Del(string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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