hardware

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

Inspector handles hardware inspection and validation

func NewInspector

func NewInspector(client redfish.VendorClient) *Inspector

NewInspector creates a new hardware inspector

func (*Inspector) InspectSystem

func (i *Inspector) InspectSystem() (*SystemInfo, error)

InspectSystem performs a comprehensive hardware inspection

func (*Inspector) ValidateRequirements

func (i *Inspector) ValidateRequirements(info *SystemInfo, reqs *Requirements) error

ValidateRequirements checks if the system meets the minimum requirements

type Requirements

type Requirements struct {
	MinMemoryGiB     int
	MinStorageGiB    int
	MinCPUs          int
	RequiredFeatures []string
}

Requirements defines the minimum hardware requirements for deployment

type SystemInfo

type SystemInfo struct {
	MemoryGiB      int
	ProcessorCount int
	Model          string
	Manufacturer   string
	SerialNumber   string
}

SystemInfo represents the inspected system information

Jump to

Keyboard shortcuts

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