Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher is responsible for managing a given services state and sending work to the Runner pool
func NewDispatcher ¶
func NewDispatcher(cfg dropship.Config, t *Runner, wg *sync.WaitGroup, shutdownCh <-chan struct{}) (*Dispatcher, error)
NewDispatcher return a new Dispatcher.
func (*Dispatcher) Work ¶
func (w *Dispatcher) Work()
Work is responsible for actually performing all the check, download, install and script execution for a given service
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is a type of worker pool that takes its work over a channel this allows for a dispatcher to actually signal the work.
func NewRunner ¶
NewRunner creates a new runner with the number go routines created and ready for work
Click to show internal directories.
Click to hide internal directories.