# Functions
Serve is used to serve a driverplugin.
StreamToExecOptions is a convenience method to convert exec stream into ExecOptions object.
# Constants
ApiVersion010 is the initial API version for the device plugins.
CheckBufSize is the size of the buffer that is used for job output.
DriverHealthy is the default health description that should be used if the driver is nominal.
Pre09TaskHandleVersion is the version used to identify that the task handle is from a driver that existed before driver plugins (v0.9).
# Variables
DriverStatsNotImplemented is the error to be returned if a driver doesn't implement stats.
FSIsolationChroot means the driver will use a chroot on the host filesystem.
FSIsolationImage means the driver uses an image.
FSIsolationNone means no isolation.
NetIsolationModeGroup uses the group network namespace for isolation.
NetIsolationModeHost disables network isolation and uses the host network.
NetIsolationModeNone indicates that there is no network to isolate and is intended to be used for tasks that the client manages remotely.
NetIsolationModeTask isolates the network to just the task.
# Structs
DriverExecTaskNotSupported can be embedded by drivers which don't support the ExecTask RPC.
DriverNetwork is the network created by driver's (eg Docker's bridge network) during Prestart.
DriverSignalTaskNotSupported can be embedded by drivers which don't support the SignalTask RPC.
InternalCapabilities flags disabled functionality.
PluginDriver wraps a DriverPlugin and implements go-plugins GRPCPlugin interface to expose the the interface over gRPC.
TaskHandle is the state shared between a driver and the client.
# Interfaces
DriverNetworkManager is the interface with exposes function for creating a network namespace for which tasks can join.
DriverPlugin is the interface with drivers will implement.
ExecTaskStream represents a stream of exec streaming messages, and is a handle to get stdin and tty size and send back stdout/stderr and exit operations.
ExecTaskStreamingDriver marks that a driver supports streaming exec task.
ExecTaskStreamingRawDriver represents a low-level interface for executing a streaming exec call, and is intended to be used when driver instance is to delegate exec handling to another backend, e.g.
InternalCapabilitiesDriver is an experimental interface enabling a driver to disable some nomad functionality (e.g.
# Type aliases
CpuStats holds cpu usage related stats.
FSIsolation is an enumeration to describe what kind of filesystem isolation a driver supports.
MemoryStats holds memory usage related stats.
MountConfigSupport is an enum that defaults to "all" for backwards compatibility with community drivers.
ResourceUsage holds information related to cpu and memory stats.
TaskResourceUsage holds aggregated resource usage of all processes in a Task and the resource usage of the individual pids.