plugins

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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