hardware

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MemoryModuleType = resource.Type("MemoryModules.hardware.talos.dev")

MemoryModuleType is type of MemoryModule resource.

View Source
const NamespaceName resource.Namespace = "hardware"

NamespaceName contains resources related to hardware as a whole.

View Source
const ProcessorType = resource.Type("Processors.hardware.talos.dev")

ProcessorType is type of Processor resource.

View Source
const SystemInformationType = resource.Type("SystemInformations.hardware.talos.dev")

SystemInformationType is type of SystemInformation resource.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryModule

MemoryModule resource holds node MemoryModule information.

func NewMemoryModuleInfo

func NewMemoryModuleInfo(id string) *MemoryModule

NewMemoryModuleInfo initializes a MemoryModuleInfo resource.

type MemoryModuleRD

type MemoryModuleRD struct{}

MemoryModuleRD provides auxiliary methods for Memory info.

func (MemoryModuleRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type MemoryModuleSpec

type MemoryModuleSpec struct {
	Size          uint32 `yaml:"sizeMiB,omitempty" protobuf:"1"`
	DeviceLocator string `yaml:"deviceLocator,omitempty" protobuf:"2"`
	BankLocator   string `yaml:"bankLocator,omitempty" protobuf:"3"`
	Speed         uint32 `yaml:"speed,omitempty" protobuf:"4"`
	Manufacturer  string `yaml:"manufacturer,omitempty" protobuf:"5"`
	SerialNumber  string `yaml:"serialNumber,omitempty" protobuf:"6"`
	AssetTag      string `yaml:"assetTag,omitempty" protobuf:"7"`
	ProductName   string `yaml:"productName,omitempty" protobuf:"8"`
}

MemoryModuleSpec represents a single Memory.

func (MemoryModuleSpec) DeepCopy

func (o MemoryModuleSpec) DeepCopy() MemoryModuleSpec

DeepCopy generates a deep copy of MemoryModuleSpec.

type Processor

Processor resource holds node Processor information.

func NewProcessorInfo

func NewProcessorInfo(id string) *Processor

NewProcessorInfo initializes a ProcessorInfo resource.

type ProcessorRD

type ProcessorRD struct{}

ProcessorRD provides auxiliary methods for Processor info.

func (ProcessorRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type ProcessorSpec

type ProcessorSpec struct {
	Socket       string `yaml:"socket,omitempty" protobuf:"1"`
	Manufacturer string `yaml:"manufacturer,omitempty" protobuf:"2"`
	ProductName  string `yaml:"productName,omitempty" protobuf:"3"`
	// MaxSpeed is in megahertz (Mhz)
	MaxSpeed uint32 `yaml:"maxSpeedMhz,omitempty" protobuf:"4"`
	// Speed is in megahertz (Mhz)
	BootSpeed    uint32 `yaml:"bootSpeedMhz,omitempty" protobuf:"5"`
	Status       uint32 `yaml:"status,omitempty" protobuf:"6"`
	SerialNumber string `yaml:"serialNumber,omitempty" protobuf:"7"`
	AssetTag     string `yaml:"assetTag,omitempty" protobuf:"8"`
	PartNumber   string `yaml:"partNumber,omitempty" protobuf:"9"`
	CoreCount    uint32 `yaml:"coreCount,omitempty" protobuf:"10"`
	CoreEnabled  uint32 `yaml:"coreEnabled,omitempty" protobuf:"11"`
	ThreadCount  uint32 `yaml:"threadCount,omitempty" protobuf:"12"`
}

ProcessorSpec represents a single processor.

func (ProcessorSpec) DeepCopy

func (o ProcessorSpec) DeepCopy() ProcessorSpec

DeepCopy generates a deep copy of ProcessorSpec.

type SystemInformation

SystemInformation resource holds node SystemInformation information.

func NewSystemInformation

func NewSystemInformation(id string) *SystemInformation

NewSystemInformation initializes a SystemInformationInfo resource.

type SystemInformationRD

type SystemInformationRD struct{}

SystemInformationRD provides auxiliary methods for SystemInformation.

func (SystemInformationRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type SystemInformationSpec

type SystemInformationSpec struct {
	Manufacturer string `yaml:"manufacturer,omitempty" protobuf:"1"`
	ProductName  string `yaml:"productName,omitempty" protobuf:"2"`
	Version      string `yaml:"version,omitempty" protobuf:"3"`
	SerialNumber string `yaml:"serialnumber,omitempty" protobuf:"4"`
	UUID         string `yaml:"uuid,omitempty" protobuf:"5"`
	WakeUpType   string `yaml:"wakeUpType,omitempty" protobuf:"6"`
	SKUNumber    string `yaml:"skuNumber,omitempty" protobuf:"7"`
}

SystemInformationSpec represents the system information obtained from smbios.

func (SystemInformationSpec) DeepCopy

DeepCopy generates a deep copy of SystemInformationSpec.

Jump to

Keyboard shortcuts

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