Documentation
¶
Overview ¶
Package integration provides simple Hockeypuck integration functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerAdapter ¶
LoggerAdapter adapts logrus.Logger to the plugin.Logger interface
func (*LoggerAdapter) Debug ¶
func (l *LoggerAdapter) Debug(msg string, args ...interface{})
func (*LoggerAdapter) Error ¶
func (l *LoggerAdapter) Error(msg string, args ...interface{})
func (*LoggerAdapter) Info ¶
func (l *LoggerAdapter) Info(msg string, args ...interface{})
func (*LoggerAdapter) Warn ¶
func (l *LoggerAdapter) Warn(msg string, args ...interface{})
type PluginSystem ¶
type PluginSystem struct {
// contains filtered or unexported fields
}
PluginSystem represents the complete plugin system
func InitializePlugins ¶
func InitializePlugins(ctx context.Context, host pluginapi.PluginHost, settings *config.Settings) (*PluginSystem, error)
InitializePlugins initializes the plugin system with a single call from Hockeypuck
func (*PluginSystem) GetEventBus ¶
func (ps *PluginSystem) GetEventBus() *events.EventBus
GetEventBus returns the event bus for external use
func (*PluginSystem) GetPlugin ¶
func (ps *PluginSystem) GetPlugin(name string) (pluginapi.Plugin, bool)
GetPlugin returns a loaded plugin by name
func (*PluginSystem) ListPlugins ¶
func (ps *PluginSystem) ListPlugins() []string
ListPlugins returns all loaded plugin names
Click to show internal directories.
Click to hide internal directories.