linux

package
v0.2.34 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 29 Imported by: ? 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 linux is om, the Linux product: what the Desktop app is to macOS. It installs Core and the Connector, keeps the om daemon running, holds the connection intent and drives sign-in and updates, only through the owners Desktop calls: Core's manage, the Connector's own commands, and the daemon's socket.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Executable is this om's path.
	Executable = os.Executable
	// User is the OS user om runs as.
	User = user.Current
	// Root prefixes the system's own paths: /run, /etc/systemd/system and /usr/local/bin.
	Root = ""
	// Input is om's standard input, where the daemon gives a move's secret.
	Input io.Reader = os.Stdin
)

What om reads of the machine it runs on; tests replace them.

View Source
var MoveWait, MoveStep = 90 * time.Second, 3 * time.Second

MoveWait is how long om move reads back a move whose reply was lost, and MoveStep how often: Cloud decides a move within its secret's minute. Tests replace them.

View Source
var ReleaseKey = "kfCsrDY+JI5/qVJLQf7xJ10BlHNSt/NrnErRLnopuhs="

ReleaseKey is the Ed25519 public key that signs Linux releases, in base64. Cloud carries the same key; its private half exists only where releases are signed. Tests replace it.

Functions

func Main

func Main(args []string, stdout, stderr io.Writer) int

Main runs om with args and returns its exit status: 0, or 1 with one line on stderr that says what to do next, or 2 for a command it does not have.

Types

This section is empty.

Jump to

Keyboard shortcuts

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