Documentation
¶
Index ¶
Constants ¶
View Source
const PluginInstallPrefix = "/opt/mks/"
Variables ¶
This section is empty.
Functions ¶
func NewInstallablePluginRegistry ¶
func NewInstallablePluginRegistry() *installablePluginRegistry
Initializes a new plugin registry.
func NewStartStopPluginRegistry ¶
func NewStartStopPluginRegistry() apis.StartStopPluginRegistry
Initializes a new plugin registry.
Types ¶
type CombineFunc ¶
type CombineFunc func() ([]apis.StartStopPlugin, error)
CombineFunc combines several plugins and returns them as array.
type CombinedStartStopPlugin ¶
type CombinedStartStopPlugin struct {
// contains filtered or unexported fields
}
CombinedStartStopPlugin is a simple plugin that combines several plugins together using a combine function.
func NewCombinedPlugin ¶
func NewCombinedPlugin(pluginName string, plugins []apis.StartStopPlugin, singleRunnable bool) (*CombinedStartStopPlugin, error)
NewCombinedPlugin creates a new plugin that combines some more plugins to one.
func (*CombinedStartStopPlugin) IsSingleRunnable ¶
func (c *CombinedStartStopPlugin) IsSingleRunnable() bool
func (*CombinedStartStopPlugin) Start ¶
func (c *CombinedStartStopPlugin) Start(messageChannel chan *apis.MonitoringMessage) (string, error)
Start really combines the plugins together and starts them all.
func (*CombinedStartStopPlugin) Stop ¶
func (c *CombinedStartStopPlugin) Stop() error
Stop stops all plugins.
func (*CombinedStartStopPlugin) String ¶
func (c *CombinedStartStopPlugin) String() string
String returns the plugin name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.