package
0.8.7-rc1
Repository: https://github.com/nir0s/nomad.git
Documentation: pkg.go.dev

# Functions

NewBuilder creates a new task environment builder.
NewEmptyBuilder creates a new environment builder.
NewTaskEnv creates a new task environment with the given environment and node attribute maps.

# Constants

AddrPrefix is the prefix for passing both dynamic and static port allocations to tasks.
AllocDir is the environment variable with the path to the alloc directory that is shared across tasks within a task group.
AllocID is the environment variable for passing the allocation ID.
AllocIndex is the environment variable for passing the allocation index.
AllocName is the environment variable for passing the allocation name.
CpuLimit is the environment variable with the tasks CPU limit in MHz.
Datacenter is the environment variable for passing the datacenter in which the alloc is running.
GroupName is the environment variable for passing the task group name.
HostPortPrefix is the prefix for passing the host port when a port map is specified.
IpPrefix is the prefix for passing the host IP of a port allocation to a task.
JobName is the environment variable for passing the job name.
MemLimit is the environment variable with the tasks memory limit in MBs.
MetaPrefix is the prefix for passing task meta data.
PortPrefix is the prefix for passing the port allocation to a task.
Region is the environment variable for passing the region in which the alloc is running.
SecretsDir is the environment variable with the path to the tasks secret directory where it can store sensitive data.
TaskLocalDir is the environment variable with the path to the tasks local directory where it can store data that is persisted to the alloc is removed.
TaskName is the environment variable for passing the task name.
VaultToken is the environment variable for passing the Vault token.

# Structs

Builder is used to build task environment's and is safe for concurrent use.
TaskEnv is a task's environment as well as node attribute's for interpolation.