Documentation ¶
Index ¶
Constants ¶
const MemoryModuleType = resource.Type("MemoryModules.hardware.talos.dev")
MemoryModuleType is type of MemoryModule resource.
const NamespaceName resource.Namespace = "hardware"
NamespaceName contains resources related to hardware as a whole.
const ProcessorType = resource.Type("Processors.hardware.talos.dev")
ProcessorType is type of Processor resource.
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 ¶
type MemoryModule = typed.Resource[MemoryModuleSpec, MemoryModuleRD]
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 ¶
func (c MemoryModuleRD) ResourceDefinition(resource.Metadata, MemoryModuleSpec) meta.ResourceDefinitionSpec
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 ¶
type Processor = typed.Resource[ProcessorSpec, ProcessorRD]
Processor resource holds node Processor information.
func NewProcessorInfo ¶
NewProcessorInfo initializes a ProcessorInfo resource.
type ProcessorRD ¶
type ProcessorRD struct{}
ProcessorRD provides auxiliary methods for Processor info.
func (ProcessorRD) ResourceDefinition ¶
func (c ProcessorRD) ResourceDefinition(resource.Metadata, ProcessorSpec) meta.ResourceDefinitionSpec
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 ¶
type SystemInformation = typed.Resource[SystemInformationSpec, SystemInformationRD]
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 ¶
func (c SystemInformationRD) ResourceDefinition(resource.Metadata, SystemInformationSpec) meta.ResourceDefinitionSpec
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 ¶
func (o SystemInformationSpec) DeepCopy() SystemInformationSpec
DeepCopy generates a deep copy of SystemInformationSpec.