Documentation ¶
Overview ¶
Functions shared between linux/darwin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( string{"logs", "tmp", "data"} // The name of the directory that exists inside each task directory // regardless of driver. TaskLocal = "local" )SharedAllocName = "alloc" SharedAllocDirs = []
Functions ¶
This section is empty.
Types ¶
type AllocDir ¶
type AllocDir struct { // AllocDir is the directory used for storing any state // of this allocation. It will be purged on alloc destroy. AllocDir string // group. SharedDir string // TaskDirs is a mapping of task names to their non-shared directory. TaskDirs map[string]string // contains filtered or unexported fields }
func NewAllocDir ¶
func (*AllocDir) Embed ¶
Embed takes a mapping of absolute directory or file paths on the host to their intended, relative location within the task directory. Embed attempts hardlink and then defaults to copying. If the path exists on the host and can't be embeded an error is returned.
func (*AllocDir) MountSharedDir ¶
MountSharedDir mounts the shared directory into the specified task's directory. Mount is documented at an OS level in their respective implementation files.
Click to show internal directories.
Click to hide internal directories.