Documentation ¶
Index ¶
- type Engine
- func (e *Engine) GetJobsScheduledToMachine(machID string) []job.Job
- func (e *Engine) LockMachine(machID string) *registry.TimedResourceMutex
- func (e *Engine) OfferJob(j job.Job) error
- func (e *Engine) RemoveUnitState(jobName string)
- func (e *Engine) ResolveJobOffer(jobName string, machID string) error
- func (e *Engine) Run()
- func (e *Engine) Stop()
- type EventHandler
- func (eh *EventHandler) HandleCommandLoadJob(ev event.Event)
- func (eh *EventHandler) HandleCommandStopJob(ev event.Event)
- func (eh *EventHandler) HandleCommandUnloadJob(ev event.Event)
- func (eh *EventHandler) HandleEventJobBidSubmitted(ev event.Event)
- func (eh *EventHandler) HandleEventJobScheduled(ev event.Event)
- func (eh *EventHandler) HandleEventJobUnscheduled(ev event.Event)
- func (eh *EventHandler) HandleEventMachineCreated(ev event.Event)
- func (eh *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 (e *Engine) LockMachine(machID string) *registry.TimedResourceMutex
Pass-through to Registry.LockMachine
func (*Engine) RemoveUnitState ¶ added in v0.3.0
func (*Engine) ResolveJobOffer ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler(engine *Engine) *EventHandler
func (*EventHandler) HandleCommandLoadJob ¶ added in v0.3.0
func (eh *EventHandler) HandleCommandLoadJob(ev event.Event)
func (*EventHandler) HandleCommandStopJob ¶ added in v0.3.0
func (eh *EventHandler) HandleCommandStopJob(ev event.Event)
func (*EventHandler) HandleCommandUnloadJob ¶ added in v0.3.0
func (eh *EventHandler) HandleCommandUnloadJob(ev event.Event)
func (*EventHandler) HandleEventJobBidSubmitted ¶
func (eh *EventHandler) HandleEventJobBidSubmitted(ev event.Event)
func (*EventHandler) HandleEventJobScheduled ¶ added in v0.2.0
func (eh *EventHandler) HandleEventJobScheduled(ev event.Event)
func (*EventHandler) HandleEventJobUnscheduled ¶ added in v0.3.0
func (eh *EventHandler) HandleEventJobUnscheduled(ev event.Event)
EventJobUnscheduled is triggered when a scheduling decision has been rejected, or is now unfulfillable due to changes in the cluster. Attempt to reschedule the job if it is in a non-inactive state.
func (*EventHandler) HandleEventMachineCreated ¶ added in v0.2.0
func (eh *EventHandler) HandleEventMachineCreated(ev event.Event)
func (*EventHandler) HandleEventMachineRemoved ¶
func (eh *EventHandler) HandleEventMachineRemoved(ev event.Event)
Click to show internal directories.
Click to hide internal directories.