# Packages
BOLTdd contains a wrapper around BoltDB to deduplicate writes and encode values using mgspack.
Copied from github.com/hashicorp/consul/sdk/freeport
and tweaked for use by Nomad.
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.
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.
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.
# Functions
boolToPtr returns the pointer to a boolean.
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.
CopyMapStringSliceString copies a map of strings to string slices such as http.Header.
Helpers for copying generic structures.
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.
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.
SliceStringContains returns whether item exists at least once in list.
SliceStringIsSubset returns whether the smaller set of strings is a subset of the larger.
StringToPtr returns the pointer to a string.
TimeToPtr returns the pointer to a time.Duration.
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.