Documentation
¶
Overview ¶
Package wslguest derives the device identity of an agent running inside a WSL distribution. It is deliberately tiny and dependency-free: both the telemetry payload and the run gate need the same id, and internal/telemetry already imports internal/rungate, so neither can own it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceID ¶
DeviceID derives a distribution's device id from its Windows host's serial and its own registry GUID, both passed in by the host that triggered the scan. Returns "" unless both are present: a half-pair identifies nothing.
Deterministic, so re-scans converge on one device record instead of breeding rows; unique per (host, distro), so distributions on one host never collide — which they would if we fell back to the hostname they all share. The backend does not recompute this (it pairs on distro_id), so the value only has to be stable and unique, not verifiable.
Types ¶
This section is empty.