bringup

package
v0.0.0-...-785df0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

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

func (Runnable) Run

func (r Runnable) Run()

func (Runnable) RunWith

func (r Runnable) RunWith(cfg Config)

type SupervisorConfig

type SupervisorConfig struct {
	Metrics []supervisor.Metrics
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL