# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
ApiTaskToStructsTask is a copy and type conversion between the API representation of a task from a struct representation of a task.
No description provided by the author
No description provided by the author
DefaultConfig is a the baseline configuration for Nomad.
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.
NewLogWriter creates a logWriter with the given buffer capacity.
NewStreamFramer creates a new stream framer that will output StreamFrames to the passed output.
NewTestAgent returns a started agent with the given name and configuration.
ParseConfig parses the config from the given io.Reader.
ParseConfigFile parses the given path as a config file.
ValidateLevelFilter verifies that the log levels within the filter are valid.
# Constants
ErrEntOnly is the error returned if accessing an enterprise only endpoint.
ErrInvalidMethod is used if the HTTP method is not supported.
No description provided by the author
OriginStart and OriginEnd are the available parameters for the origin argument when streaming a file.
# Variables
HeartbeatStreamFrame is the StreamFrame to send as a heartbeat, avoiding creating many instances of the empty StreamFrame.
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.
Command is a Command implementation that runs a Nomad agent.
Config is the configuration for the Nomad agent.
HTTPServer is used to wrap an Agent and expose it over an HTTP interface.
No description provided by the author
Ports encapsulates the various ports we bind to for network services.
ReadCloserWrapper wraps a LimitReader so that a file is closed once it has been read.
No description provided by the author
ServerConfig is configuration specific to the server mode.
StreamFrame is used to frame data of a file when streaming.
StreamFramer is used to buffer and send frames as well as heartbeat.
SyslogWrapper is used to cleaup 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.
No description provided by the author
# Interfaces
HTTPCodedError is used to provide the HTTP error code.
LogHandler interface is used for clients that want to subscribe to logs, for example to stream them over an IPC mechanism.