Documentation
¶
Overview ¶
Package bringup implements a simple wrapper which configures all default mounts, logging and the corresponding forwarder ttyS0. It then configures a new logtree and starts a supervisor to run the provided supervisor.Runnable. Said Runnable is expected to return no error. If it does, the supervisor will exit, an error will be printed and the system will reboot after five seconds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Console ConsoleConfig
Supervisor SupervisorConfig
}
type ConsoleConfig ¶
type ConsoleConfig struct {
ShortenDictionary logtree.ShortenDictionary
// Filter is used to filter out some uselessly verbose logs from the
// console. It should return true if an entry is allowed to be printed.
Filter func(*logtree.LogEntry) bool
}
type Runnable ¶
type Runnable supervisor.Runnable
type SupervisorConfig ¶
type SupervisorConfig struct {
Metrics []supervisor.Metrics
}
Click to show internal directories.
Click to hide internal directories.