Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake is a fake scheduler.
func (*Fake) GetBuildlet ¶
GetBuildlet returns a fake buildlet client for the requested buildlet.
func (*Fake) State ¶
func (f *Fake) State() (st SchedulerState)
State returns the state of the fake scheduler.
func (*Fake) WaiterState ¶
func (f *Fake) WaiterState(waiter *queue.SchedItem) (ws types.BuildletWaitStatus)
WaiterState is the waiter state of the fake scheduler.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
The Scheduler prioritizes access to buidlets. It accepts requests for buildlets, starts the creation of buildlets from BuildletPools, and prioritizes which callers gets them first when they're ready.
func (*Scheduler) GetBuildlet ¶
GetBuildlet requests a buildlet with the parameters described in si.
The provided si must be newly allocated; ownership passes to the scheduler.
func (*Scheduler) State ¶
func (s *Scheduler) State() (st SchedulerState)
func (*Scheduler) WaiterState ¶
func (s *Scheduler) WaiterState(waiter *queue.SchedItem) (ws types.BuildletWaitStatus)
WaiterState returns tells waiter how many callers are on the line in front of them.
type SchedulerHostState ¶
type SchedulerHostState struct { HostType string LastProgress time.Duration Total SchedulerWaitingState Gomote SchedulerWaitingState Try SchedulerWaitingState Regular SchedulerWaitingState }
type SchedulerState ¶
type SchedulerState struct {
HostTypes []SchedulerHostState
}
type SchedulerWaitingState ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
Span is an event covering a region of time. A Span ultimately ends in an error or success, and will eventually be visualized and logged.
func CreateSpan ¶
func CreateSpan(el pool.EventTimeLogger, event string, optText ...string) *Span
CreateSpan creates a span with the appropriate metadata. It also starts the span.