Documentation ¶
Index ¶
- type CPUInfo
- type FPGAInfo
- type FanInfo
- type FanTrayInfo
- type HardwareInfo
- type IntegratedCircuitInfo
- type Lanes
- type LoggingInfo
- type MemoryInfo
- type MountPointInfo
- type NTPServerInfo
- type PCIeInfo
- type PMDProperty
- type PMDType
- type PlatformInfo
- type PortInfo
- type PortProperty
- type SecurityComponentInfo
- type SmartDataInfo
- type StorageDeviceInfo
- type SystemInfo
- type TemperatureSensorInfo
- type Threshold
- type Threshold32
- type Threshold64
- type Thresholds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FPGAInfo ¶
type FPGAInfo struct { Name string Manufacturer string Description string FirmwareVersionRegex string ResetCauseNum int }
FPGAInfo consists of FPGA related information.
type FanTrayInfo ¶
FanTrayInfo consists of fan tray related information.
type HardwareInfo ¶
type HardwareInfo struct { Fans []FanInfo Fantrays []FanTrayInfo FPGAs []FPGAInfo ICs []IntegratedCircuitInfo PCIe []PCIeInfo Security []SecurityComponentInfo Storage []StorageDeviceInfo CPU []TemperatureSensorInfo Heatsink []TemperatureSensorInfo Exhaust []TemperatureSensorInfo Inlet []TemperatureSensorInfo Dimm []TemperatureSensorInfo }
HardwareInfo contains hardware components related information.
type IntegratedCircuitInfo ¶
IntegratedCircuitInfo consists of integrated-circuit related information.
type LoggingInfo ¶
LoggingInfo contains a remote server addresses to be used for logging.
type MemoryInfo ¶
type MemoryInfo struct { Physical uint64 FreeThreshold uint64 UsedThreshold uint64 CorrectableEccErrorThreshold uint64 }
MemoryInfo contains memory related information.
type MountPointInfo ¶
type MountPointInfo struct {
Name string
}
MountPointInfo returns mount points related information.
type NTPServerInfo ¶
NTPServerInfo returns NTP server related information.
type PCIeInfo ¶
type PCIeInfo struct {
Name string
}
PcieInfo consists of PCIe device related information.
type PMDProperty ¶
type PMDProperty struct { SupportedSpeeds map[Lanes][]oc.E_IfEthernet_ETHERNET_SPEED SupportedBreakoutModes []string CollateralFlap bool }
PMDProperty contain PMD information.
type PlatformInfo ¶
type PlatformInfo struct { SystemInfo SystemInfo HardwareInfo HardwareInfo // contains filtered or unexported fields }
PlatformInfo contains platform specific information.
func NewPlatformInfo ¶
func NewPlatformInfo(t *testing.T, dut *ondatra.DUTDevice, platformName string) (*PlatformInfo, error)
NewPlatformInfo creates a new PlatformInfo.
type PortInfo ¶
type PortInfo struct { MaxLanes int PortProperties map[string]*PortProperty PMD map[PMDType]bool // contains filtered or unexported fields }
PortInfo contains port related information.
func NewPortInfo ¶
NewPortInfo creates a new PortInfo.
func (*PortInfo) PMDProperty ¶
func (p *PortInfo) PMDProperty(pmdType PMDType) (*PMDProperty, error)
type PortProperty ¶
PortProperties contains front panel port information.
type SecurityComponentInfo ¶
type SecurityComponentInfo struct {
Name string
}
SecurityComponentInfo consists of security component related information.
type SmartDataInfo ¶
type SmartDataInfo struct { WriteAmplificationFactorThresholds Thresholds[float64] RawReadErrorRateThresholds Thresholds[float64] ThroughputPerformanceThresholds Thresholds[float64] ReallocatedSectorCountThresholds Thresholds[uint64] PowerOnSecondsThresholds Thresholds[uint64] SSDLifeLeftThresholds Thresholds[uint64] AvgEraseCountThresholds Thresholds[uint32] MaxEraseCountThresholds Thresholds[uint32] }
SmartDataInfo consists of storage device SMART data related information.
type StorageDeviceInfo ¶
type StorageDeviceInfo struct { Name string IsRemovable bool IOErrorsThreshold uint64 SmartDataInfo SmartDataInfo }
StorageDeviceInfo consists of storage device related information.
type SystemInfo ¶
type SystemInfo struct { RebootTime time.Duration CPUInfo []CPUInfo LoggingInfo LoggingInfo MemInfo MemoryInfo MountPointInfo []MountPointInfo NTPServerInfo []NTPServerInfo }
SystemInfo consists of system related information.
type TemperatureSensorInfo ¶
TemperatureSensorInfo consists of temperature sensor related information.
type Threshold32 ¶
Threshold32 consists of the minimum and maximum thresholds as a float32.
type Threshold64 ¶
Threshold64 consists of the minimum and maximum thresholds as a float64.
type Thresholds ¶
Thresholds encapsulates a set of inclusive lower and upper thresholds.