Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRunner ¶
type TaskRunner struct { CurrentDirectory string // contains filtered or unexported fields }
TaskRunner runs tasks
func NewTaskRunner ¶
NewTaskRunner creates a new task runner instance
func (*TaskRunner) PluginByName ¶
func (t *TaskRunner) PluginByName(pluginName string) (p plugins.PluginFactory, err error)
PluginByName gets plugin by name
func (*TaskRunner) RunJob ¶
func (t *TaskRunner) RunJob(j manifest.Job, ctx *job.RunContext)
RunJob starts job in separate goroutine.
Use ctx.Error channel to track job result and ctx.Cancel() to cancel it.
func (*TaskRunner) RunTask ¶ added in v0.2.0
func (t *TaskRunner) RunTask(taskName string) (err error)
RunTask execute task by name
Click to show internal directories.
Click to hide internal directories.