API Reference nerves_gate_sim v#0.1.0
Copy MarkdownModules
Bounded probes of the real guest Alarmist handler, without hardware adapters or mocks.
Host-only identity, status and graceful shutdown of this checkout's mix dev session.
Reversible bench controls. One long-lived worker owns cleanup.
One admission owner for the multi-device simulator, shared by the site, CLI and CI.
Local management recovery checks, not proof of access through the tailnet.
Host-only lifecycle owner of disposable QEMU devices. No devices start with this server.
Runs mix firmware under MuonTrap, streams its output to the terminal and
forwards the latest complete line in each chunk to the simulator. Flushes the
final fragment on completion.
The owned bench's real Ethernet switch. QEMU supplies the network protocols.
Real SSH recovery, provisioning and firmware transport for owned simulator devices.
Test auth keys and enrollment for simulator-owned QEMU guests.
Scenario assertions and cleanup for simulator-owned device handles.
Development tools for disposable, supervised QEMU devices. No in-memory hardware backend.
JSON for the simulator CLI tasks. Never includes device credentials.
One simulated device: its live projection, faults, manual controls and scenarios.
The simulator site: a private Unix socket for the CLI and a loopback port.
Simulator lifecycle, configuration, devices, runs and the shared event log.
Mix Tasks
Run the gateway UI on the workstation, with code reload, against one device. Simulated and real gateways are selected the same way
Start the QEMU simulator site. Devices remain stopped until explicitly started in the site. Applications use the real firmware SDK backend inside the guest; this task never starts the current application against fake host hardware.
Package the current application and run it on a simulator device.
Inspect this checkout's simulator session without starting or stopping it.
Stop this checkout's idle simulator session and wait for its lock to be released.
Run scenarios, or change the lifecycle, of the running mix dev simulator.