# Packages
No description provided by the author
Package boltdd contains a wrapper around BBoltDB 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
Package envoy provides a high level view of the variables that go into selecting an envoy version.
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
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
Package pointer provides helper functions related to Go pointers.
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 subproc provides helper utilities for executing the Nomad binary as a child process of the Nomad agent.
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
No description provided by the author
# Functions
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.
CleanFilename replaces invalid characters in filename.
CleanFilenameASCIIOnly replaces invalid and non-ASCII characters in filename.
CleanFilenameStrict replaces invalid and punctuation characters in filename.
ConvertMap takes the input map and generates a new one using the supplied conversion function to convert the values.
ConvertSlice takes the input slice and generates a new one using the supplied conversion function to covert the element.
CopyMapOfSlice creates a copy of m, making copies of each []V.
CopySlice creates a deep copy of s.
DeepCopyMap creates a copy of m by calling Copy() on each value.
ElementsEqual returns true if slices a and b contain the same elements (in no particular order) using the Equal function defined on their type for comparison.
HashUUID takes an input UUID and returns a hashed version of the UUID to ensure it is well distributed.
IsDisjoint returns whether first and second are disjoint sets, and the set of offending elements if not.
IsErrEOF returns true if we get an EOF error from the socket itself, or an EOF equivalent error from yamux.
IsMethodHTTP returns whether s is a known HTTP method, ignoring case.
IsSubset returns whether the smaller set of items is a subset of the larger.
IsUUID returns true if the given string is a valid UUID.
IsValidInterpVariable returns true if a valid dotted variable names for interpolation.
Max returns the maximum of a and b.
Merge takes two variables and returns variable b in case a has zero value.
MergeMapStringString will merge two maps into one.
MergeMultierrorWarnings takes warnings and merges them into a returnable string.
Min returns the minimum of a and b.
NewSafeTimer creates a time.Timer but does not panic if duration is <= 0.
NewStoppedTimer creates a time.Timer in a stopped state.
OpaqueMapsEqual compare maps[<comparable>]<any> for equality, but safely by using the cmp package and ignoring un-exported types, and by treating nil/empty slices and maps as equal.
RandomStagger returns an interval between 0 and the duration.
RateScaledInterval is used to choose an interval to perform an action in order to target an aggregate number of actions per second across the whole cluster.
RemoveEqualFold removes the first string that EqualFold matches.
SliceSetEq returns true if slices a and b contain the same elements (in no particular order), using '==' for comparison.
StringHasPrefixInSlice returns true if s starts with any prefix in list.
UniqueMapSliceValues returns the union of values from each slice in a map[K][]V.
UnusedKeys returns a pretty-printed error if any `hcl:",unusedKeys"` is not empty.
WithLock executes a function while holding a lock.
# Type aliases
StopFunc is used to stop a time.Timer created with NewSafeTimer.