plugin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlugin

func GetPlugin(name string) *types.Wrapper

GetPlugin returns a single plugin

func GetPlugins

func GetPlugins() map[string]*types.Wrapper

GetPlugins returns all loaded plugins

func GetRegisteredPlugins

func GetRegisteredPlugins() []*types.Wrapper

GetRegisteredPlugins returns the registered plugins

func LoadPlugin

func LoadPlugin(path string, m types.ManagerInterface) error

LoadPlugin loads a single plugin

func RegisterPlugin

func RegisterPlugin(c types.Interface, metadata types.Metadata)

RegisterPlugin registers a new plugin

func UnloadPlugin

func UnloadPlugin(name string) error

UnloadPlugin unloads a single plugin

Types

type PluginRegistry

type PluginRegistry struct {
	// contains filtered or unexported fields
}

PluginRegistry manages the loaded plugins

Jump to

Keyboard shortcuts

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