mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 00:45:43 +03:00
The driver manager is modeled after the device manager and is started by the client. It's responsible for handling driver lifecycle and reattachment state, as well as processing the incomming fingerprint and task events from each driver. The mananger exposes a method for registering event handlers for task events that is used by the task runner to update the server when a task has been updated with an event. Since driver fingerprinting has been implemented by the driver manager, it is no longer needed in the fingerprint mananger and has been removed.
12 lines
336 B
Go
12 lines
336 B
Go
package state
|
|
|
|
import "github.com/hashicorp/nomad/plugins/shared"
|
|
|
|
// PluginState is used to store the driver managers state across restarts of the
|
|
// agent
|
|
type PluginState struct {
|
|
// ReattachConfigs are the set of reattach configs for plugin's launched by
|
|
// the driver manager
|
|
ReattachConfigs map[string]*shared.ReattachConfig
|
|
}
|