worker

package
v0.8.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginLoadedType = iota
)
View Source
const (
	TaskCreatedType = iota
)

Variables

This section is empty.

Functions

func DispatchWorkers

func DispatchWorkers(nworkers int, pluginQueue chan PluginRequest, taskQueue chan TaskRequest, quitChan chan struct{}, workerWaitGroup *sync.WaitGroup, cp ManagesPlugins, tm ManagesTasks, mm getsMembers)

Types

type ManagesPlugins

type ManagesPlugins interface {
	Load(...string) (core.CatalogedPlugin, perror.PulseError)
	Unload(plugin core.Plugin) (core.CatalogedPlugin, perror.PulseError)
	PluginCatalog() core.PluginCatalog
}

type ManagesTasks

type ManagesTasks interface {
	GetTask(id string) (core.Task, error)
	CreateTask(sch schedule.Schedule, wfMap *wmap.WorkflowMap, startOnCreate bool, opts ...core.TaskOption) (core.Task, core.TaskErrors)
}

type Member

type Member interface {
	GetAddr() net.IP
	GetRestPort() string
	GetRestProto() string
	GetRestInsecureSkipVerify() bool
	GetName() string
}

type PluginRequest

type PluginRequest struct {
	Plugin      core.Plugin
	RequestType int
}

type Task

type Task struct {
	ID            string
	StartOnCreate bool
}

type TaskRequest

type TaskRequest struct {
	Task        Task
	RequestType int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL