wslguest

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 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 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

func DeviceID(hostSerial, distroID string) string

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.

Jump to

Keyboard shortcuts

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