cpu

package
v1.0.0-beta.31 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCpu

func CheckCpu(manifestDevice engines.Device, hostCpu types.CpuInfo) (cpuScore int, issues []string)

func Match

func Match(manifestDevice engines.Device, hostCpus []types.CpuInfo) (maxCpuScore int, deviceIssues []string)

Match takes a Device with type CPU, and checks if it matches any of the CPU models reported for the system. A score, a string slice with reasons and an error are returned. If there is a matching CPU on the system, the score will be positive and the error will be nil. If no CPU is found, the score will be zero and there will be one or more reasons for the mismatch. In case of a runtime error, the error value will be non-nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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