# Functions
GetAbsolutePath returns the absolute path of the passed binary by resolving it in the path and following symlinks.
GetDockerCoordinator returns the shared dockerCoordinator instance.
GetKillTimeout returns the kill timeout to use given the tasks desired kill timeout and the operator configured max kill timeout.
No description provided by the author
GetTaskEnv converts the alloc dir, the node, task and alloc into a TaskEnvironment.
No description provided by the author
NewDockerCoordinator returns a new Docker coordinator.
No description provided by the author
NewDockerDriverConfig returns a docker driver config by parsing the HCL config.
NewDriver is used to instantiate and return a new driver given the name and a logger.
NewDriverContext initializes a new DriverContext with the specified fields.
NewEmptyDriverContext returns a DriverContext with all fields set to their zero value.
NewExecContext is used to create a new execution context.
NewExecDriver is used to create a new exec driver.
NewJavaDriver is used to create a new exec driver.
No description provided by the author
No description provided by the author
NewQemuDriver is used to create a new exec driver.
NewRawExecDriver is used to create a new raw exec driver.
NewRktDriver is used to create a new exec driver.
# Constants
NoSuchContainerError is returned by the docker daemon if the container does not exist.
# Variables
BuiltinDrivers contains the built in registered drivers which are available for allocation handling.
No description provided by the author
The statistics the Docker driver exposes.
DriverStatsNotImplemented is the error to be returned if a driver doesn't implement stats.
No description provided by the author
# Structs
CreatedResources is a map of resources (eg downloaded images) created by a driver that must be cleaned up.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DriverAbilities marks the abilities the driver has.
DriverContext is a means to inject dependencies such as loggers, configs, and node attributes into a Driver without having to change the Driver interface each time we do it.
ExecContext is a task's execution context.
ExecDriver fork/execs tasks using as many of the underlying OS's isolation features.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JavaDriver is a simple driver to execute applications packaged in Jars.
No description provided by the author
LaunchCmdArgs wraps a user command and the args for the purposes of RPC.
ExecutorReattachConfig is the config that we seralize and de-serialize and store in disk.
QemuDriver is a driver for running images via Qemu We attempt to chose sane defaults for now, with more configuration available planned in the future.
No description provided by the author
The RawExecDriver is a privileged version of the exec driver.
RktDriver is a driver for running images via Rkt We attempt to chose sane defaults for now, with more configuration available planned in the future.
No description provided by the author
SyncServicesArgs wraps the consul context for the purposes of RPC.
# Interfaces
DockerImageClient provides the methods required to do CRUD operations on the Docker images.
Driver is used for execution of tasks.
DriverHandle is an opaque handle into a driver used for task manipulation.
# Type aliases
Factory is used to instantiate a new Driver.
LogEventFn is a callback which allows Drivers to emit task events.