Documentation ¶
Overview ¶
Package operator implement functions for get or synchronize informations from mesos master using mesos operate API
A oprate manager is responsible for synchronize agents from mesos master
Index ¶
Constants ¶
View Source
const AGENT_SYNC_INTERVAL = 240
interval for synchronize agents from mesos master, seconds
Variables ¶
This section is empty.
Functions ¶
func GetMesosResource ¶
func GetMesosResource(mesosClient *client.Client) (*commtypes.BcsClusterResource, error)
GetMesosResource Get cluster current resource information from mesos master
Types ¶
type OperatorMgr ¶
type OperatorMgr struct { // at present, just for exit msg OperatorMsgQueue chan *OperatorMsg // contains filtered or unexported fields }
Operate manager
func CreateOperatorMgr ¶
Create operate manager
func (*OperatorMgr) UpdateMesosAgents ¶
func (mgr *OperatorMgr) UpdateMesosAgents()
Click to show internal directories.
Click to hide internal directories.