Documentation ¶
Overview ¶
Package plugin contains general interfaces and types relevant to plugins. It also provides the methods for registering plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
Mock stands for a mocked plugin.
func (*Mock) Execute ¶
func (m *Mock) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) (res contracts.PluginResult)
Execute mocks a plugin execution.
type PluginRegistry ¶
PluginRegistry stores a set of plugins, indexed by ID.
func RegisteredWorkerPlugins ¶
func RegisteredWorkerPlugins(context context.T) PluginRegistry
RegisteredWorkerPlugins returns all registered core plugins.
type T ¶
type T interface {
Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) contracts.PluginResult
}
T is the interface type for plugins.
Click to show internal directories.
Click to hide internal directories.