Documentation
¶
Index ¶
- Constants
- func LoadPlugin(p *l8web.L8Plugin, vnic ifs.IVNic) error
- type PluginService
- func (this *PluginService) Activate(sla *ifs.ServiceLevelAgreement, vnic ifs.IVNic) error
- func (this *PluginService) DeActivate() error
- func (this *PluginService) Delete(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) Failed(pb ifs.IElements, vnic ifs.IVNic, msg *ifs.Message) ifs.IElements
- func (this *PluginService) Get(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) GetCopy(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) Patch(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) Post(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) Put(pb ifs.IElements, vnic ifs.IVNic) ifs.IElements
- func (this *PluginService) TransactionConfig() ifs.ITransactionConfig
- func (this *PluginService) WebService() ifs.IWebService
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 ¶
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) TransactionConfig ¶
func (this *PluginService) TransactionConfig() ifs.ITransactionConfig
func (*PluginService) WebService ¶
func (this *PluginService) WebService() ifs.IWebService
Click to show internal directories.
Click to hide internal directories.