Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleHandler ¶
func NewExampleHandler() *exampleHandler
NewExampleHandler provide a example handler
func NewExamplePlugin ¶
func NewExamplePlugin() *examplePlugin
NewExamplePlugin returns an initialized examplePlugin instance
func NewTestExamplePlugin ¶
NewTestExamplePlugin returns an initialized examplePlugin instance for testing
Types ¶
type RegisterCallbackFn ¶
type RegisterCallbackFn func(pluginName string, endpoint string, versions []string, socketPath string) (chan bool, error)
RegisterCallbackFn is the type of the callback function that handlers will provide
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the plugin watcher
func (*Watcher) AddHandler ¶
func (w *Watcher) AddHandler(pluginType string, handlerCbkFn RegisterCallbackFn)
AddHandler registers a callback to be invoked for a particular type of plugin
Click to show internal directories.
Click to hide internal directories.