Documentation
¶
Index ¶
- type Scheduler
- func (e *Scheduler) EventLoop()
- func (e *Scheduler) HandleOffers(offers *mesosproto.Event_Offers) error
- func (e *Scheduler) HandleUpdate(event *mesosproto.Event) error
- func (e *Scheduler) Heartbeat()
- func (e *Scheduler) HeartbeatLoop()
- func (e *Scheduler) PrepareTaskInfoExecuteContainer(agent mesosproto.AgentID, cmd mesosutil.Command) ([]mesosproto.TaskInfo, error)
- func (e *Scheduler) Reconcile()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶ added in v0.4.0
type Scheduler struct {
Config *cfg.Config
Framework *mesosutil.FrameworkConfig
Client *http.Client
Req *http.Request
API *api.API
}
Scheduler include all the current vars and global config
func Subscribe ¶
func Subscribe(cfg *cfg.Config, frm *mesosutil.FrameworkConfig) *Scheduler
Subscribe to the mesos backend
func (*Scheduler) EventLoop ¶ added in v0.4.0
func (e *Scheduler) EventLoop()
EventLoop is the main loop for the mesos events.
func (*Scheduler) HandleOffers ¶ added in v0.4.0
func (e *Scheduler) HandleOffers(offers *mesosproto.Event_Offers) error
HandleOffers will handle the offers event of mesos
func (*Scheduler) HandleUpdate ¶ added in v0.4.0
func (e *Scheduler) HandleUpdate(event *mesosproto.Event) error
HandleUpdate will handle the offers event of mesos
func (*Scheduler) Heartbeat ¶ added in v0.4.0
func (e *Scheduler) Heartbeat()
Heartbeat - The Apache Mesos heatbeat function
func (*Scheduler) HeartbeatLoop ¶ added in v0.4.1
func (e *Scheduler) HeartbeatLoop()
HeartbeatLoop - The main loop for the hearbeat
func (*Scheduler) PrepareTaskInfoExecuteContainer ¶ added in v0.4.0
func (e *Scheduler) PrepareTaskInfoExecuteContainer(agent mesosproto.AgentID, cmd mesosutil.Command) ([]mesosproto.TaskInfo, error)
PrepareTaskInfoExecuteContainer will create the TaskInfo Protobuf for Mesos
Click to show internal directories.
Click to hide internal directories.