Documentation
¶
Overview ¶
Package hardware probes host hardware identity and evaluates snapshot hardware compatibility between workers and snapshots.
Index ¶
Constants ¶
View Source
const (
// AttrArchitecture is the CPU architecture ("amd64", "arm64", etc.).
AttrArchitecture = "architecture"
)
Variables ¶
This section is empty.
Functions ¶
func Matches ¶
func Matches(worker, snap *ateapipb.HardwareIdentity) bool
Matches reports whether worker satisfies the hardware identity recorded on snap. A nil or empty snapshot HardwareIdentity imposes no constraint.
TODO: Distinguish memory-restore matching (full CPU vendor/model) from cold-boot fallback matching (architecture only) once additional hardware attributes are populated.
func ProbeHost ¶
func ProbeHost() *ateapipb.HardwareIdentity
ProbeHost inspects the current host and returns its HardwareIdentity.
TODO: Probe and populate cpu_vendor, cpu_model, and other host hardware attributes (e.g. via CPUID on amd64 and MIDR_EL1 on arm64).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.