plugins

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 5 Imported by: 0

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.

Directories

Path Synopsis
fake
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL