package
0.12.12
Repository: https://github.com/hashicorp/nomad.git
Documentation: pkg.go.dev

# Functions

InterpolateServices returns an interpolated copy of services and checks with values from the task's environment.
NewBuilder creates a new task environment builder.
NewEmptyBuilder creates a new environment builder.
NewEmptyTaskEnv creates a new empty task environment.
NewTaskEnv creates a new task environment with the given environment, device environment and node attribute maps.
SetPortMapEnvs sets the PortMap related environment variables on the map.

# 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.
A set of environment variables that are exported by each driver.
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.
A set of environment variables that are exported by each driver.
A set of environment variables that are exported by each driver.
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.
Namespace is the environment variable for passing the namespace in which the alloc is running.
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.
UpstreamPrefix is the prefix for passing upstream IP and ports to the alloc.
VaultNamespace is the environment variable for passing the Vault namespace, if applicable.
VaultToken is the environment variable for passing the Vault token.

# Variables

ErrInvalidObjectPath is returned when a key cannot be converted into a nested object path like "foo...bar", ".foo", or "foo.".

# 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.