Documentation
¶
Overview ¶
Package manager encapsulates everything related to long running plugin manager that starts, stops & configures long running plugins
Index ¶
- Constants
- type Mock
- func (m *Mock) EnsurePluginRegistered(name string, plugin managerContracts.Plugin) (err error)
- func (m *Mock) GetRegisteredPlugins() map[string]managerContracts.Plugin
- func (m *Mock) ModuleExecute() (err error)
- func (m *Mock) ModuleName() string
- func (m *Mock) ModuleStop() (err error)
- func (m *Mock) StartPlugin(name, configuration, orchestrationDir string, cancelFlag task.CancelFlag, ...) (err error)
- func (m *Mock) StopPlugin(name string, cancelFlag task.CancelFlag) (err error)
Constants ¶
const CloudWatchId = "aws:cloudWatch"
CloudWatchId represents the ID of cloud watch plugin
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
Mock stands for a mocked manager.
func NewMockDefault ¶
func NewMockDefault() *Mock
NewMockDefault returns an instance of Mock with default expectations set.
func (*Mock) EnsurePluginRegistered ¶
func (m *Mock) EnsurePluginRegistered(name string, plugin managerContracts.Plugin) (err error)
EnsurePluginRegistered adds a long-running plugin if it is not already in the registry
func (*Mock) GetRegisteredPlugins ¶
func (m *Mock) GetRegisteredPlugins() map[string]managerContracts.Plugin
GetRegisteredPlugins returns a map of all registered long running plugins - return the specified plugin map for testing here
func (*Mock) ModuleExecute ¶
Execute starts long running plugin manager and returns encountered error - returns nil here for testing
func (*Mock) ModuleStop ¶
RequestStop handles the termination of the message processor plugin job and returns encountered error - returns nil here for testing
func (*Mock) StartPlugin ¶
func (m *Mock) StartPlugin(name, configuration, orchestrationDir string, cancelFlag task.CancelFlag, out iohandler.IOHandler) (err error)
StartPlugin starts the given plugin with the given configuration and returns encountered error - returns nil here for testing
func (*Mock) StopPlugin ¶
func (m *Mock) StopPlugin(name string, cancelFlag task.CancelFlag) (err error)
StopPlugin stops a given plugin from executing and returns encountered error - returns nil here for testing