# Packages
No description provided by the author
BOLTdd contains a wrapper around BoltDB to deduplicate writes and encode values using mgspack.
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
No description provided by the author
No description provided by the author
Copied from github.com/hashicorp/consul/sdk/freeport
and tweaked for use by Nomad.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package noxssrw (No XSS ResponseWriter) behaves like the Go standard library's ResponseWriter by detecting the Content-Type of a response if it has not been explicitly set.
No description provided by the author
No description provided by the author
Code generated by go generate; DO NOT EDIT.
snapshot manages the interactions between Nomad and Raft in order to take and restore snapshots for disaster recovery.
No description provided by the author
Package testlog creates a *log.Logger backed by *testing.T to ease logging in tests.
Package testtask implements a portable set of commands useful as stand-ins for user tasks.
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
boolToPtr returns the pointer to a boolean.
No description provided by the author
CheckNamespaceScope ensures that the provided namespace is equal to or a parent of the requested namespaces.
CleanEnvVar replaces all occurrences of illegal characters in an environment variable with the specified byte.
CompareMapStringString returns true if the maps are equivalent.
CompareSliceSetString returns true if the slices contain the same strings.
CompareTimePtrs return true if a is the same as b.
No description provided by the author
No description provided by the author
No description provided by the author
CopyMapStringSliceString copies a map of strings to string slices such as http.Header.
Helpers for copying generic structures.
No description provided by the author
No description provided by the author
No description provided by the author
Float64ToPtr returns the pointer to an float64.
HashUUID takes an input UUID and returns a hashed version of the UUID to ensure it is well distributed.
Int64ToPtr returns the pointer to an int.
Int8ToPtr returns the pointer to an int8.
No description provided by the author
No description provided by the author
IntToPtr returns the pointer to an int.
IsUUID returns true if the given string is a valid UUID.
IsValidInterpVariable returns true if a valid dotted variable names for interpolation.
MapStringStringSliceValueSet returns the set of values in a map[string][]string.
PathEscapesSandbox returns whether previously cleaned path inside the sandbox directory (typically this will be the allocation directory) escapes.
RemoveEqualFold removes the first string that EqualFold matches.
No description provided by the author
SliceStringContains returns whether item exists at least once in list.
SliceStringIsSubset returns whether the smaller set of strings is a subset of the larger.
No description provided by the author
StringToPtr returns the pointer to a string.
TimeToPtr returns the pointer to a time.Duration.
No description provided by the author
Uint64ToPtr returns the pointer to an uint64.
UintToPtr returns the pointer to an uint.
UnusedKeys returns a pretty-printed error if any `hcl:",unusedKeys"` is not empty.