Documentation ¶
Index ¶
- type ActivateResponse
- type OptionMap
- type Plugin
- func (plugin *Plugin) DisableDiscovery()
- func (plugin *Plugin) EnableDiscovery() error
- func (plugin *Plugin) Initialize(config *common.PluginConfig) error
- func (plugin *Plugin) ParseOptions(options OptionMap) OptionMap
- func (plugin *Plugin) SendErrorResponse(w http.ResponseWriter, errMsg error)
- func (plugin *Plugin) Uninitialize()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateResponse ¶
Response sent by plugin for activation.
type Plugin ¶
Plugin is the parent class for CNM plugins.
func (*Plugin) DisableDiscovery ¶
func (plugin *Plugin) DisableDiscovery()
DisableDiscovery disables discovery by deleting the plugin spec file.
func (*Plugin) EnableDiscovery ¶
EnableDiscovery enables Docker to discover the plugin by creating the plugin spec file.
func (*Plugin) Initialize ¶
func (plugin *Plugin) Initialize(config *common.PluginConfig) error
Initialize initializes the plugin and starts the listener.
func (*Plugin) ParseOptions ¶
ParseOptions returns generic options from a libnetwork request.
func (*Plugin) SendErrorResponse ¶
func (plugin *Plugin) SendErrorResponse(w http.ResponseWriter, errMsg error)
SendErrorResponse sends and logs an error response.
func (*Plugin) Uninitialize ¶
func (plugin *Plugin) Uninitialize()
Uninitialize cleans up the plugin.
Click to show internal directories.
Click to hide internal directories.