Documentation ¶
Overview ¶
Package discover finds worker configs for the core agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDiscover ¶
type IDiscover interface {
FindWorkerConfigs() map[string]*model.WorkerConfig
}
IDiscover is the interface for starting/terminating/watching worker
type WorkerDiscover ¶
type WorkerDiscover struct {
// contains filtered or unexported fields
}
WorkerDiscover contains list of running workers, it starts/terminates/watches workers
func NewWorkerDiscover ¶
func NewWorkerDiscover(log log.T) *WorkerDiscover
NewWorkerDiscover returns worker discover
func (*WorkerDiscover) FindWorkerConfigs ¶
func (discover *WorkerDiscover) FindWorkerConfigs() map[string]*model.WorkerConfig
FindWorkerConfigs finds the available worker configs
Click to show internal directories.
Click to hide internal directories.