Documentation
¶
Overview ¶
package `task` implements a generic task runner, which can be a source of events
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
Register adds a plugin to the map of plugins. It will return errors if the name or label is invalid, or the plugin with the same name already exists.
Types ¶
type Plugin ¶
type Plugin struct { Name_ types.String `json:"name,omitempty"` Label_ types.String `json:"label,omitempty"` }
Plugin creates tasks from a configuration
func (Plugin) HasNameLabel ¶
Return error if the plugin does not have a name or label
type Plugins ¶
Plugins is a map of all registered plugins
func (Plugins) LoadPluginsForPattern ¶
LoadPluginsForPattern will load and return a map of plugins for a given glob pattern, keyed against the plugin name. Any plugins which already exist are replaced, if the argument is true
Click to show internal directories.
Click to hide internal directories.