# Functions
TODO(schmichael) refactor and reuse in service parsing above.
ApiTaskToStructsTask is a copy and type conversion between the API representation of a task from a struct representation of a task.
DefaultConfig is a the baseline configuration for Nomad.
DefaultEntConfig is an empty config in open source.
DevConfig is a Config that is used for dev mode of Nomad.
LevelFilter returns a LevelFilter that is configured with the log levels that we use.
LoadConfig loads the configuration at the given path, regardless if its a file or directory.
LoadConfigDir loads all the configurations in the given directory in alphabetical order.
NewAgent is used to create a new agent with the given configuration.
NewHTTPServer starts new HTTP server over the agent.
NewTestAgent returns a started agent with the given name and configuration.
setupLoggers is used to setup the logGate, and our logOutput.
ValidateLevelFilter verifies that the log levels within the filter are valid.
# Constants
ContextKeyReqID is a unique ID for a given request.
DefaultRaftMultiplier is used as a baseline Raft configuration that will be reliable on a very basic server.
EnterpriseTestAgent is used to configure a TestAgent's Enterprise flag.
ErrEntOnly is the error returned if accessing an enterprise only endpoint.
ErrInvalidMethod is used if the HTTP method is not supported.
MaxRaftMultiplier is a fairly arbitrary upper bound that limits the amount of performance detuning that's possible.
MissingRequestID is a placeholder if we cannot retrieve a request UUID from context.
# Variables
TempDir defines the base dir for temporary directories.
# Structs
ACLConfig is configuration specific to the ACL system.
Addresses encapsulates all of the addresses we bind to for various network services.
AdvertiseAddrs is used to control the addresses we advertise out for different network services.
Agent is a long running daemon that is used to run both clients and servers.
ClientConfig is configuration specific to the client mode.
ClientTemplateConfig is configuration on the client specific to template rendering.
Command is a Command implementation that runs a Nomad agent.
Config is the configuration for the Nomad agent.
EnterpriseAgent holds information and methods for enterprise functionality in OSS it is an empty struct.
HTTPServer is used to wrap an Agent and expose it over an HTTP interface.
Ports encapsulates the various ports we bind to for network services.
ServerConfig is configuration specific to the server mode.
ServerJoin is used in both clients and servers to bootstrap connections to servers.
SyslogWrapper is used to cleanup log messages before writing them to a Syslogger.
Telemetry is the telemetry configuration for the server.
TestAgent encapsulates an Agent with a default configuration and startup procedure suitable for testing.
# Interfaces
DiscoverInterface is an interface for the Discover type in the go-discover library.
HTTPCodedError is used to provide the HTTP error code.