Documentation ¶
Index ¶
- Constants
- func CPUArchitecture(ctx context.Context, node *corev1.Node) (string, error)
- func CPUVendorId(ctx context.Context, node *corev1.Node) (string, error)
- func IsAMD(ctx context.Context, node *corev1.Node) (bool, error)
- func IsARM(ctx context.Context, node *corev1.Node) (bool, error)
- func IsCPUVendor(ctx context.Context, node *corev1.Node, vendor string) (bool, error)
- func IsIntel(ctx context.Context, node *corev1.Node) (bool, error)
- func IsVM(ctx context.Context, node *corev1.Node) (bool, error)
- type CpuArchitecture
Constants ¶
View Source
const ( IntelVendorID = "GenuineIntel" AMDVendorID = "AuthenticAMD" )
Variables ¶
This section is empty.
Functions ¶
func CPUArchitecture ¶
CPUArchitecture returns CPU Architecture from lscpu output
func CPUVendorId ¶
CPUVendorId returns Vendor ID information from lscpu output
func IsCPUVendor ¶
IsCPUVendor checks if the CPU Vendor ID matches the given vendor string
Types ¶
type CpuArchitecture ¶
type CpuArchitecture struct {
Lscpu []cpuField `json:"lscpu"`
}
CpuArchitecture struct to represent CPU Details
Click to show internal directories.
Click to hide internal directories.