Documentation ¶
Index ¶
- type Engine
- 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) HandleEventMachineLost(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) CheckForWork ¶ added in v0.3.2
func (e *Engine) CheckForWork()
CheckForWork attempts to rectify the current state of all Jobs in the cluster with their target states wherever discrepancies are identified.
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) HandleEventMachineLost ¶ added in v0.5.0
func (eh *EventHandler) HandleEventMachineLost(ev event.Event)
func (*EventHandler) HandleEventMachineRemoved ¶
func (eh *EventHandler) HandleEventMachineRemoved(ev event.Event)
Click to show internal directories.
Click to hide internal directories.