{"modulePath":"github.com/OpenMachineLabs/openmachine","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package linux\n\nPackage 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.\n\n## Variables\n\n```go\nvar (\n\t// Executable is this om's path.\n\tExecutable = os.Executable\n\t// User is the OS user om runs as.\n\tUser = user.Current\n\t// Root prefixes the system's own paths: /run, /etc/systemd/system and /usr/local/bin.\n\tRoot = \"\"\n\t// Input is om's standard input, where the daemon gives a move's secret.\n\tInput io.Reader = os.Stdin\n)\n```\nWhat om reads of the machine it runs on; tests replace them.\n\n```go\nvar MoveWait, MoveStep = 90 * time.Second, 3 * time.Second\n```\nMoveWait 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.\n\n```go\nvar ReleaseKey = \"kfCsrDY+JI5/qVJLQf7xJ10BlHNSt/NrnErRLnopuhs=\"\n```\nReleaseKey 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.\n\n## Functions\n\n```go\nfunc Main(args []string, stdout, stderr io.Writer) int\n```\nMain 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.\n\n","path":"github.com/OpenMachineLabs/openmachine/linux","name":"linux","synopsis":"Package linux is om, the Linux product: what the Desktop app is to macOS.","isRedistributable":true}
