hardware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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