Documentation ¶
Index ¶
- func RegisterPlugin(pluginName string, endpointArgumentName string, newFunc NewFunc)
- func RegisteredPlugins() map[string]func() Plugin
- type NewFunc
- type Plugin
- type Plugins
- func (p Plugins) CallStack(data interface{}) (stack map[string]interface{})
- func (p Plugins) DestroyAll()
- func (p Plugins) GetData(argv []any) (data map[string]string)
- func (p Plugins) GetEnvironmentsData(envIds []uid.ID) (data map[uid.ID]map[string]string)
- func (p Plugins) GetEnvironmentsShortData(envIds []uid.ID) (data map[uid.ID]map[string]string)
- func (p Plugins) InitAll(fid string)
- func (p Plugins) ObjectStack(varStack map[string]string, baseConfigStack map[string]string) (stack map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶ added in v0.20.2
func RegisteredPlugins ¶ added in v0.22.80
Types ¶
type Plugin ¶
type Plugin interface { GetName() string GetPrettyName() string GetEndpoint() string GetConnectionState() string GetData(argv []any) string GetEnvironmentsData(envIds []uid.ID) map[uid.ID]string GetEnvironmentsShortData(envIds []uid.ID) map[uid.ID]string Init(instanceId string) error CallStack(data interface{}) map[string]interface{} // used in hook call context ObjectStack(varStack map[string]string, baseConfigStack map[string]string) map[string]interface{} // all other ProcessTemplates contexts Destroy() error }
type Plugins ¶
type Plugins []Plugin
func PluginsInstance ¶
func PluginsInstance() Plugins
func (Plugins) DestroyAll ¶
func (p Plugins) DestroyAll()
func (Plugins) GetEnvironmentsData ¶ added in v0.56.0
func (Plugins) GetEnvironmentsShortData ¶ added in v0.79.0
Click to show internal directories.
Click to hide internal directories.