Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatherWSL ¶ added in v1.17.0
GatherWSL detects Windows Subsystem for Linux on the host. It returns nil on non-Windows platforms — WSL detection is host-side only; the Linux binary runs inside a distro and identifies itself separately. It never errors: every failure degrades to WSLPresenceUnknown so a partial probe can't read as a confident "no WSL".
func SerialNumber ¶ added in v1.15.0
SerialNumber resolves just the hardware serial (the device_id used by every backend API), skipping the rest of Gather. The run gate calls this before the device_info phase — and before any network beacon — so it must stay self-contained and tolerate every failure by returning "unknown" (the same contract as the per-OS getters). Callers cache the result on disk; only a device's first gated invocation pays the probe (ioreg on macOS).
Types ¶
This section is empty.