client: begin driver plugin integration

client: fingerprint driver plugins
This commit is contained in:
Nick Ethier
2018-10-04 15:08:20 -04:00
committed by Michael Schurter
parent 627e20801d
commit d335a82859
31 changed files with 2240 additions and 579 deletions

View File

@@ -13,6 +13,9 @@ import (
// TaskDir contains all of the paths relevant to a task. All paths are on the
// host system so drivers should mount/link into task containers as necessary.
type TaskDir struct {
// AllocDir is the path to the alloc directory on the host
AllocDir string
// Dir is the path to Task directory on the host
Dir string
@@ -50,6 +53,7 @@ func newTaskDir(logger hclog.Logger, allocDir, taskName string) *TaskDir {
logger = logger.Named("task_dir").With("task_name", taskName)
return &TaskDir{
AllocDir: allocDir,
Dir: taskDir,
SharedAllocDir: filepath.Join(allocDir, SharedAllocName),
LogDir: filepath.Join(allocDir, SharedAllocName, LogDirName),