client: Move executor plugins into own package

This commit is contained in:
Danielle Tomlinson
2018-11-29 14:33:39 +01:00
parent d4ef3b68d9
commit 75d333fe02
10 changed files with 30 additions and 25 deletions

View File

@@ -8,7 +8,7 @@ import (
hclog "github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/nomad/client/driver"
"github.com/hashicorp/nomad/client/driver/executor_plugin"
dstructs "github.com/hashicorp/nomad/client/driver/structs"
)
@@ -43,8 +43,8 @@ func (e *ExecutorPluginCommand) Run(args []string) int {
return 1
}
plugin.Serve(&plugin.ServeConfig{
HandshakeConfig: driver.HandshakeConfig,
Plugins: driver.GetPluginMap(
HandshakeConfig: executorplugin.HandshakeConfig,
Plugins: executorplugin.GetPluginMap(
stdo,
hclog.LevelFromString(executorConfig.LogLevel),
executorConfig.FSIsolation,