Documentation ¶
Index ¶
- type Engine
- func (self *Engine) GetJobsScheduledToMachine(machBootID string) []job.Job
- func (self *Engine) LockMachine(machBootID string) *registry.TimedResourceMutex
- func (self *Engine) OfferJob(j job.Job) error
- func (self *Engine) RemoveJobState(jobName string)
- func (self *Engine) ResolveJobOffer(jobName string, machBootID string) error
- func (self *Engine) Run()
- func (self *Engine) Stop()
- func (self *Engine) UnscheduleJob(jobName string)
- type EventHandler
- func (self *EventHandler) HandleEventJobBidSubmitted(ev event.Event)
- func (self *EventHandler) HandleEventJobCreated(ev event.Event)
- func (self *EventHandler) HandleEventJobScheduled(ev event.Event)
- func (self *EventHandler) HandleEventJobStopped(ev event.Event)
- func (self *EventHandler) HandleEventMachineCreated(ev event.Event)
- func (self *EventHandler) HandleEventMachineRemoved(ev event.Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) GetJobsScheduledToMachine ¶
func (*Engine) LockMachine ¶ added in v0.1.2
func (self *Engine) LockMachine(machBootID string) *registry.TimedResourceMutex
Pass-through to Registry.LockMachine
func (*Engine) RemoveJobState ¶ added in v0.1.1
func (*Engine) ResolveJobOffer ¶
func (*Engine) UnscheduleJob ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler(engine *Engine) *EventHandler
func (*EventHandler) HandleEventJobBidSubmitted ¶
func (self *EventHandler) HandleEventJobBidSubmitted(ev event.Event)
func (*EventHandler) HandleEventJobCreated ¶
func (self *EventHandler) HandleEventJobCreated(ev event.Event)
func (*EventHandler) HandleEventJobScheduled ¶ added in v0.2.0
func (self *EventHandler) HandleEventJobScheduled(ev event.Event)
func (*EventHandler) HandleEventJobStopped ¶ added in v0.2.0
func (self *EventHandler) HandleEventJobStopped(ev event.Event)
func (*EventHandler) HandleEventMachineCreated ¶ added in v0.2.0
func (self *EventHandler) HandleEventMachineCreated(ev event.Event)
func (*EventHandler) HandleEventMachineRemoved ¶
func (self *EventHandler) HandleEventMachineRemoved(ev event.Event)
Click to show internal directories.
Click to hide internal directories.