Documentation ¶
Overview ¶
Package plugin contains all essential structs/interfaces for long running plugins
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPluginSupportedForCurrentPlatform ¶
IsPluginSupportedForCurrentPlatform always returns true because currently, there is no plugin that particular linux version doesn't support while other linux version does.
Types ¶
type LongRunningPlugin ¶
type LongRunningPlugin interface { IsRunning(context context.T) bool Start(context context.T, configuration string, orchestrationDir string, cancelFlag task.CancelFlag) error Stop(context context.T, cancelFlag task.CancelFlag) error }
LongRunningPlugin is the interface that must be implemented by all long running plugins
type LongRunningPluginInput ¶
type LongRunningPluginInput struct { Settings PluginSettings Properties string }
LongRunningPluginInput represents input for long running plugin like aws:cloudWatch
type Plugin ¶
type Plugin struct { Info PluginInfo Handler LongRunningPlugin }
Plugin reflects a long running plugin
type PluginInfo ¶
type PluginInfo struct { Name string Configuration string State PluginState }
PluginInfo reflects information about long running plugins This is also used by lrpm manager to persisting information & then later use it for reference
type PluginSettings ¶
type PluginSettings struct {
StartType string
}
PluginSettings reflects settings that can be applied to long running plugins like aws:cloudWatch
type PluginState ¶
PluginState reflects state of a long running plugin
Directories ¶
Path | Synopsis |
---|---|
Package cloudwatch implements cloudwatch plugin and its configuration
|
Package cloudwatch implements cloudwatch plugin and its configuration |