Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobRunner ¶ added in v0.4.0
type JobRunner interface {
// PluginByName returns plugin constructor
PluginByName(pluginName string) (p PluginFactory, err error)
// RunJob starts job in separate goroutine.
//
// Use ctx.Error channel to track job result and ctx.Cancel() to cancel it.
RunJob(j manifest.Job, ctx *job.RunContext)
}
JobRunner runs jobs
type Plugin ¶
type Plugin interface {
// Call calls a plugin
Call(*job.RunContext, JobRunner) error
// Cancel stops plugin execution
Cancel(*job.RunContext) error
}
Plugin represents Gilbert's plugin
Click to show internal directories.
Click to hide internal directories.