package
0.7.1
Repository: https://github.com/tears-of-noobs/nomad.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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
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
NewPrestartResponse creates a new PrestartResponse with CreatedResources initialized.
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 rkt driver.
SetEnvvars sets path and host env vars depending on the FS isolation used.

# 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
DockerDriverConfig defines the user specified config block in a jobspec.
No description provided by the author
No description provided by the author
No description provided by the author
VolumeDriverConfig holds a map of volume driver specific options.
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.
No description provided by the author
No description provided by the author
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.
PrestartResponse is driver state returned by Driver.Prestart.
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
StartResponse is returned by Driver.Start.

# 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.
ScriptExecutor is an interface that supports Exec()ing commands in the driver's context.

# Type aliases

Factory is used to instantiate a new Driver.
LogEventFn is a callback which allows Drivers to emit task events.