 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( PluginName = "example-plugin" PluginType = "example-plugin-type" )
Variables ¶
This section is empty.
Functions ¶
func NewExamplePlugin ¶
func NewExamplePlugin() *examplePlugin
NewExamplePlugin returns an initialized examplePlugin instance
func NewTestExamplePlugin ¶
func NewTestExamplePlugin(endpoint string) *examplePlugin
NewTestExamplePlugin returns an initialized examplePlugin instance for testing
Types ¶
type RegisterCallbackFn ¶
type RegisterCallbackFn func(pluginName string, endpoint string, versions []string, socketPath string) (error, chan bool)
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(handlerType 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.