2018-11-01 01:00:30 +00:00
|
|
|
package state
|
|
|
|
|
2019-01-15 01:02:44 +00:00
|
|
|
import pstructs "github.com/hashicorp/nomad/plugins/shared/structs"
|
2018-11-01 01:00:30 +00:00
|
|
|
|
2020-03-12 18:40:07 +00:00
|
|
|
// PluginState is used to store the device manager's state across restarts of the
|
2018-11-01 01:00:30 +00:00
|
|
|
// agent
|
|
|
|
type PluginState struct {
|
2020-03-12 18:40:07 +00:00
|
|
|
// ReattachConfigs are the set of reattach configs for plugins launched by
|
2018-11-01 01:00:30 +00:00
|
|
|
// the device manager
|
2019-01-15 01:02:44 +00:00
|
|
|
ReattachConfigs map[string]*pstructs.ReattachConfig
|
2018-11-01 01:00:30 +00:00
|
|
|
}
|