Documentation
¶
Overview ¶
Package termination defines the Termination stage of the plugin loader pipeline.
The Termination stage must implement the Terminator interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendProcessTerminator ¶
type BackendProcessTerminator struct {
// contains filtered or unexported fields
}
BackendProcessTerminator implements a TerminateFunc for stopping a backend plugin process.
It uses the process.Manager to stop the backend plugin process.
type Deregister ¶
type Deregister struct {
// contains filtered or unexported fields
}
Deregister implements a TerminateFunc for removing a plugin from the plugin registry.
func (*Deregister) Deregister ¶
Deregister removes a plugin from the plugin registry.
type Opts ¶
type Opts struct {
TerminateFuncs []TerminateFunc
}
type Terminate ¶
type Terminate struct {
// contains filtered or unexported fields
}
type TerminateFunc ¶
TerminateFunc is the function used for the Terminate step of the Termination stage.
func BackendProcessTerminatorStep ¶
func BackendProcessTerminatorStep(processManager process.Manager) TerminateFunc
BackendProcessTerminatorStep returns a new TerminateFunc for stopping a backend plugin process.
func DeregisterStep ¶
func DeregisterStep(pluginRegistry registry.Service) TerminateFunc
DeregisterStep returns a new TerminateFunc for removing a plugin from the plugin registry.