status

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package status defines the format of the unit status text that orbit publishes via sd_notify and reads back when listing jobs.

The text is deliberately human-readable, because it is also what appears in the Status: line of `systemctl --user status orbit-<id>`. A leading percentage keeps it machine-readable enough for `orbit list` to draw a bar.

Index

Constants

View Source
const (
	Starting = "starting"
	Done     = "done"
)

Fixed statuses for the phases of a job that have no percentage of their own.

Variables

This section is empty.

Functions

func Failed

func Failed(code int) string

Failed renders the terminal status of a job that exited non-zero.

func Format

func Format(state osc.State, pct int) string

Format renders a progress report from the job's output stream.

func Killed

func Killed(sig string) string

Killed renders the terminal status of a job stopped by a signal.

func Percent

func Percent(text string) (int, bool)

Percent extracts the leading percentage from a status text, reporting whether there was one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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