plugins

package
v0.0.0-...-ef9b483 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName     = "Plugin"
	ServiceTypeName = "PluginService"
)

ServiceName is the identifier used to register and lookup the plugin service.

Variables

This section is empty.

Functions

func LoadPlugin

func LoadPlugin(p *l8web.L8Plugin, vnic ifs.IVNic) error

LoadPlugin loads and installs a plugin from the given L8Plugin data. The plugin must export a "Plugin" symbol implementing the IPlugin interface. After loading, the plugin's Install method is called with the provided VNic.

Types

type PluginService

type PluginService struct {
}

PluginService handles plugin distribution and loading across the Layer8 network. It receives plugin data via POST requests and loads them into the local VNic.

func (*PluginService) Activate

func (this *PluginService) Activate(sla *ifs.ServiceLevelAgreement, vnic ifs.IVNic) error

Activate registers the plugin type with the registry when the service starts.

func (*PluginService) DeActivate

func (this *PluginService) DeActivate() error

DeActivate is called when the service is stopped.

func (*PluginService) Delete

func (this *PluginService) Delete(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

func (*PluginService) Failed

func (this *PluginService) Failed(pb ifs.IElements, vnic ifs.IVNic, msg *ifs.Message) ifs.IElements

func (*PluginService) Get

func (this *PluginService) Get(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

func (*PluginService) GetCopy

func (this *PluginService) GetCopy(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

func (*PluginService) Patch

func (this *PluginService) Patch(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

func (*PluginService) Post

func (this *PluginService) Post(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

Post handles incoming plugin data and loads it into the local VNic.

func (*PluginService) Put

func (this *PluginService) Put(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements

func (*PluginService) TransactionConfig

func (this *PluginService) TransactionConfig() ifs.ITransactionConfig

func (*PluginService) WebService

func (this *PluginService) WebService() ifs.IWebService

Jump to

Keyboard shortcuts

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