plugin

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatcherPlugin

type WatcherPlugin struct {
	Name    string
	Creator any
}

func NewWatcherPlugin

func NewWatcherPlugin(wtype string, version string, notification func() any, new func(machine model.Machine, name string, states []string, failEvent string, successEvent string, interval string, ai time.Duration, properties map[string]any) (any, error)) *WatcherPlugin

func (*WatcherPlugin) PluginInstance

func (p *WatcherPlugin) PluginInstance() any

PluginInstance implements plugin.Pluggable

func (*WatcherPlugin) PluginName

func (p *WatcherPlugin) PluginName() string

PluginName implements plugin.Pluggable

func (*WatcherPlugin) PluginType

func (p *WatcherPlugin) PluginType() inter.PluginType

PluginType implements plugin.Pluggable

func (*WatcherPlugin) PluginVersion

func (p *WatcherPlugin) PluginVersion() string

PluginVersion implements plugin.Pluggable

Jump to

Keyboard shortcuts

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