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 PCIDeviceType = resource.Type("PCIDevices.hardware.talos.dev")
PCIDeviceType is type of PCIDevice resource.
const ProcessorType = resource.Type("Processors.hardware.talos.dev")
ProcessorType is type of Processor resource.
const SystemInformationID = resource.ID("systeminformation")
SystemInformationID is the ID of the SystemInformation 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, MemoryModuleExtension]
MemoryModule resource holds node MemoryModule information.
func NewMemoryModuleInfo ¶
func NewMemoryModuleInfo(id string) *MemoryModule
NewMemoryModuleInfo initializes a MemoryModuleInfo resource.
type MemoryModuleExtension ¶ added in v1.4.0
type MemoryModuleExtension struct{}
MemoryModuleExtension provides auxiliary methods for Memory info.
func (MemoryModuleExtension) ResourceDefinition ¶ added in v1.4.0
func (MemoryModuleExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension 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 PCIDevice ¶ added in v1.8.0
type PCIDevice = typed.Resource[PCIDeviceSpec, PCIDeviceExtension]
PCIDevice resource holds node PCIDevice information.
func NewPCIDeviceInfo ¶ added in v1.8.0
NewPCIDeviceInfo initializes a PCIDeviceInfo resource.
type PCIDeviceExtension ¶ added in v1.8.0
type PCIDeviceExtension struct{}
PCIDeviceExtension provides auxiliary methods for PCIDevice info.
func (PCIDeviceExtension) ResourceDefinition ¶ added in v1.8.0
func (PCIDeviceExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type PCIDeviceSpec ¶ added in v1.8.0
type PCIDeviceSpec struct { Class string `yaml:"class,omitempty" protobuf:"1"` Subclass string `yaml:"subclass,omitempty" protobuf:"2"` Vendor string `yaml:"vendor,omitempty" protobuf:"3"` Product string `yaml:"product,omitempty" protobuf:"4"` ClassID string `yaml:"class_id" protobuf:"5"` SubclassID string `yaml:"subclass_id" protobuf:"6"` VendorID string `yaml:"vendor_id" protobuf:"7"` ProductID string `yaml:"product_id" protobuf:"8"` }
PCIDeviceSpec represents a single processor.
func (PCIDeviceSpec) DeepCopy ¶ added in v1.8.0
func (o PCIDeviceSpec) DeepCopy() PCIDeviceSpec
DeepCopy generates a deep copy of PCIDeviceSpec.
type Processor ¶
type Processor = typed.Resource[ProcessorSpec, ProcessorExtension]
Processor resource holds node Processor information.
func NewProcessorInfo ¶
NewProcessorInfo initializes a ProcessorInfo resource.
type ProcessorExtension ¶ added in v1.4.0
type ProcessorExtension struct{}
ProcessorExtension provides auxiliary methods for Processor info.
func (ProcessorExtension) ResourceDefinition ¶ added in v1.4.0
func (ProcessorExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension 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, SystemInformationExtension]
SystemInformation resource holds node SystemInformation information.
func NewSystemInformation ¶
func NewSystemInformation(id string) *SystemInformation
NewSystemInformation initializes a SystemInformationInfo resource.
type SystemInformationExtension ¶ added in v1.4.0
type SystemInformationExtension struct{}
SystemInformationExtension provides auxiliary methods for SystemInformation.
func (SystemInformationExtension) ResourceDefinition ¶ added in v1.4.0
func (SystemInformationExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension 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.