Versions in this module Expand all Collapse all v0 v0.12.9 Dec 11, 2023 Changes in this version + const DefaultMountPoint — linux/amd64 + const VulnerabilityStateMitigation — linux/amd64 + const VulnerabilityStateNotAffected — linux/amd64 + const VulnerabilityStateUnknown — linux/amd64 + const VulnerabilityStateVulnerable — linux/amd64 + var VulnerabilityHumanEncoding = map[int]string — linux/amd64 + func ParseNetClassAttribute(devicePath, attrName string, interfaceClass *NetClassIface) error — linux/amd64 + type CPU string — linux/amd64 + func (c CPU) Number() string + func (c CPU) ThermalThrottle() (*CPUThermalThrottle, error) + func (c CPU) Topology() (*CPUTopology, error) + type CPUThermalThrottle struct — linux/amd64 + CoreThrottleCount uint64 + PackageThrottleCount uint64 + type CPUTopology struct — linux/amd64 + CoreID string + CoreSiblingsList string + PhysicalPackageID string + ThreadSiblingsList string + type ClassCoolingDeviceStats struct — linux/amd64 + CurState int64 + MaxState int64 + Name string + Type string + type ClassDRMCardAMDGPUStats struct — linux/amd64 + GPUBusyPercent uint64 + MemoryGTTSize uint64 + MemoryGTTUsed uint64 + MemoryVRAMSize uint64 + MemoryVRAMUsed uint64 + MemoryVRAMVendor string + MemoryVisibleVRAMSize uint64 + MemoryVisibleVRAMUsed uint64 + Name string + PowerDPMForcePerformanceLevel string + UniqueID string + type ClassThermalZoneStats struct — linux/amd64 + Mode *bool + Name string + Passive *uint64 + Policy string + Temp int64 + Type string + type ClockSource struct — linux/amd64 + Available []string + Current string + Name string + type DMIClass struct — linux/amd64 + BiosDate *string + BiosRelease *string + BiosVendor *string + BiosVersion *string + BoardAssetTag *string + BoardName *string + BoardSerial *string + BoardVendor *string + BoardVersion *string + ChassisAssetTag *string + ChassisSerial *string + ChassisType *string + ChassisVendor *string + ChassisVersion *string + ProductFamily *string + ProductName *string + ProductSKU *string + ProductSerial *string + ProductUUID *string + ProductVersion *string + SystemVendor *string + type FS struct — linux/amd64 + func NewDefaultFS() (FS, error) + func NewFS(mountPoint string) (FS, error) + func (fs FS) CPUVulnerabilities() (map[string]*Vulnerability, error) + func (fs FS) CPUs() ([]CPU, error) + func (fs FS) ClassCoolingDeviceStats() ([]ClassCoolingDeviceStats, error) + func (fs FS) ClassDRMCardAMDGPUStats() ([]ClassDRMCardAMDGPUStats, error) + func (fs FS) ClassThermalZoneStats() ([]ClassThermalZoneStats, error) + func (fs FS) ClockSources() ([]ClockSource, error) + func (fs FS) DMIClass() (*DMIClass, error) + func (fs FS) FibreChannelClass() (FibreChannelClass, error) + func (fs FS) InfiniBandClass() (InfiniBandClass, error) + func (fs FS) IsolatedCPUs() ([]uint16, error) + func (fs FS) Mdraids() ([]Mdraid, error) + func (fs FS) NVMeClass() (NVMeClass, error) + func (fs FS) NetClass() (NetClass, error) + func (fs FS) NetClassByIface(devicePath string) (*NetClassIface, error) + func (fs FS) NetClassDevices() ([]string, error) + func (fs FS) PowerSupplyClass() (PowerSupplyClass, error) + func (fs FS) SASDeviceClass() (SASDeviceClass, error) + func (fs FS) SASEndDeviceClass() (SASDeviceClass, error) + func (fs FS) SASExpanderClass() (SASDeviceClass, error) + func (fs FS) SASHostClass() (SASHostClass, error) + func (fs FS) SASPhyClass() (SASPhyClass, error) + func (fs FS) SASPortClass() (SASPortClass, error) + func (fs FS) SCSITapeClass() (SCSITapeClass, error) + func (fs FS) SystemCpufreq() ([]SystemCPUCpufreqStats, error) + func (fs FS) VMStatNUMA() (map[int]VMStat, error) + type FibreChannelClass map[string]FibreChannelHost — linux/amd64 + type FibreChannelCounters struct — linux/amd64 + DumpedFrames uint64 + ErrorFrames uint64 + FCPPacketAborts uint64 + InvalidCRCCount uint64 + InvalidTXWordCount uint64 + LinkFailureCount uint64 + LossOfSignalCount uint64 + LossOfSyncCount uint64 + NosCount uint64 + RXFrames uint64 + RXWords uint64 + SecondsSinceLastReset uint64 + TXFrames uint64 + TXWords uint64 + type FibreChannelHost struct — linux/amd64 + Counters FibreChannelCounters + DevLossTMO string + FabricName string + Name string + NodeName string + PortID string + PortName string + PortState string + PortType string + Speed string + SupportedClasses string + SupportedSpeeds string + SymbolicName string + type InfiniBandClass map[string]InfiniBandDevice — linux/amd64 + type InfiniBandCounters struct — linux/amd64 + ExcessiveBufferOverrunErrors *uint64 + LegacyPortMulticastRcvPackets *uint64 + LegacyPortMulticastXmitPackets *uint64 + LegacyPortRcvData64 *uint64 + LegacyPortRcvPackets64 *uint64 + LegacyPortUnicastRcvPackets *uint64 + LegacyPortUnicastXmitPackets *uint64 + LegacyPortXmitData64 *uint64 + LegacyPortXmitPackets64 *uint64 + LinkDowned *uint64 + LinkErrorRecovery *uint64 + LocalLinkIntegrityErrors *uint64 + MulticastRcvPackets *uint64 + MulticastXmitPackets *uint64 + PortRcvConstraintErrors *uint64 + PortRcvData *uint64 + PortRcvDiscards *uint64 + PortRcvErrors *uint64 + PortRcvPackets *uint64 + PortRcvRemotePhysicalErrors *uint64 + PortRcvSwitchRelayErrors *uint64 + PortXmitConstraintErrors *uint64 + PortXmitData *uint64 + PortXmitDiscards *uint64 + PortXmitPackets *uint64 + PortXmitWait *uint64 + SymbolError *uint64 + UnicastRcvPackets *uint64 + UnicastXmitPackets *uint64 + VL15Dropped *uint64 + type InfiniBandDevice struct — linux/amd64 + BoardID string + FirmwareVersion string + HCAType string + Name string + Ports map[uint]InfiniBandPort + type InfiniBandHwCounters struct — linux/amd64 + DuplicateRequest *uint64 + ImpliedNakSeqErr *uint64 + Lifespan *uint64 + LocalAckTimeoutErr *uint64 + NpCnpSent *uint64 + NpEcnMarkedRocePackets *uint64 + OutOfBuffer *uint64 + OutOfSequence *uint64 + PacketSeqErr *uint64 + ReqCqeError *uint64 + ReqCqeFlushError *uint64 + ReqRemoteAccessErrors *uint64 + ReqRemoteInvalidRequest *uint64 + RespCqeError *uint64 + RespCqeFlushError *uint64 + RespLocalLengthError *uint64 + RespRemoteAccessErrors *uint64 + RnrNakRetryErr *uint64 + RoceAdpRetrans *uint64 + RoceAdpRetransTo *uint64 + RoceSlowRestart *uint64 + RoceSlowRestartCnps *uint64 + RoceSlowRestartTrans *uint64 + RpCnpHandled *uint64 + RpCnpIgnored *uint64 + RxAtomicRequests *uint64 + RxDctConnect *uint64 + RxIcrcEncapsulated *uint64 + RxReadRequests *uint64 + RxWriteRequests *uint64 + type InfiniBandPort struct — linux/amd64 + Counters InfiniBandCounters + HwCounters InfiniBandHwCounters + Name string + PhysState string + PhysStateID uint + Port uint + Rate uint64 + State string + StateID uint + type Mdraid struct — linux/amd64 + ArrayState string + ChunkSize uint64 + Components []MdraidComponent + DegradedDisks uint64 + Device string + Disks uint64 + Level string + MetadataVersion string + SyncAction string + SyncCompleted float64 + UUID string + type MdraidComponent struct — linux/amd64 + Device string + State string + type NVMeClass map[string]NVMeDevice — linux/amd64 + type NVMeDevice struct — linux/amd64 + FirmwareRevision string + Model string + Name string + Serial string + State string + type NetClass map[string]NetClassIface — linux/amd64 + type NetClassIface struct — linux/amd64 + AddrAssignType *int64 + AddrLen *int64 + Address string + Broadcast string + Carrier *int64 + CarrierChanges *int64 + CarrierDownCount *int64 + CarrierUpCount *int64 + DevID *int64 + Dormant *int64 + Duplex string + Flags *int64 + IfAlias string + IfIndex *int64 + IfLink *int64 + LinkMode *int64 + MTU *int64 + Name string + NameAssignType *int64 + NetDevGroup *int64 + OperState string + PhysPortID string + PhysPortName string + PhysSwitchID string + Speed *int64 + TxQueueLen *int64 + Type *int64 + type PowerSupply struct — linux/amd64 + Authentic *int64 + Calibrate *int64 + Capacity *int64 + CapacityAlertMax *int64 + CapacityAlertMin *int64 + CapacityLevel string + ChargeAvg *int64 + ChargeControlLimit *int64 + ChargeControlLimitMax *int64 + ChargeCounter *int64 + ChargeEmpty *int64 + ChargeEmptyDesign *int64 + ChargeFull *int64 + ChargeFullDesign *int64 + ChargeNow *int64 + ChargeTermCurrent *int64 + ChargeType string + ConstantChargeCurrent *int64 + ConstantChargeCurrentMax *int64 + ConstantChargeVoltage *int64 + ConstantChargeVoltageMax *int64 + CurrentAvg *int64 + CurrentBoot *int64 + CurrentMax *int64 + CurrentNow *int64 + CycleCount *int64 + EnergyAvg *int64 + EnergyEmpty *int64 + EnergyEmptyDesign *int64 + EnergyFull *int64 + EnergyFullDesign *int64 + EnergyNow *int64 + Health string + InputCurrentLimit *int64 + Manufacturer string + ModelName string + Name string + Online *int64 + PowerAvg *int64 + PowerNow *int64 + PrechargeCurrent *int64 + Present *int64 + Scope string + SerialNumber string + Status string + Technology string + Temp *int64 + TempAlertMax *int64 + TempAlertMin *int64 + TempAmbient *int64 + TempAmbientMax *int64 + TempAmbientMin *int64 + TempMax *int64 + TempMin *int64 + TimeToEmptyAvg *int64 + TimeToEmptyNow *int64 + TimeToFullAvg *int64 + TimeToFullNow *int64 + Type string + UsbType string + VoltageAvg *int64 + VoltageBoot *int64 + VoltageMax *int64 + VoltageMaxDesign *int64 + VoltageMin *int64 + VoltageMinDesign *int64 + VoltageNow *int64 + VoltageOCV *int64 + type PowerSupplyClass map[string]PowerSupply — linux/amd64 + type RaplZone struct — linux/amd64 + Index int + MaxMicrojoules uint64 + Name string + Path string + func GetRaplZones(fs FS) ([]RaplZone, error) + func (rz RaplZone) GetEnergyMicrojoules() (uint64, error) + type SASDevice struct — linux/amd64 + BlockDevices []string + Name string + SASAddress string + SASPhys []string + SASPorts []string + type SASDeviceClass map[string]*SASDevice — linux/amd64 + func (sdc *SASDeviceClass) GetByName(name string) *SASDevice + func (sdc *SASDeviceClass) GetByPhy(name string) *SASDevice + func (sdc *SASDeviceClass) GetByPort(name string) *SASDevice + type SASHost struct — linux/amd64 + Name string + SASPhys []string + SASPorts []string + type SASHostClass map[string]*SASHost — linux/amd64 + func (shc *SASHostClass) GetByName(hostName string) *SASHost + func (shc *SASHostClass) GetByPhy(phyName string) *SASHost + func (shc *SASHostClass) GetByPort(portName string) *SASHost + type SASPhy struct — linux/amd64 + DeviceType string + InitiatorPortProtocols []string + InvalidDwordCount int + LossOfDwordSyncCount int + MaximumLinkrate float64 + MaximumLinkrateHW float64 + MinimumLinkrate float64 + MinimumLinkrateHW float64 + Name string + NegotiatedLinkrate float64 + PhyIdentifier string + PhyResetProblemCount int + RunningDisparityErrorCount int + SASAddress string + SASPort string + TargetPortProtocols []string + type SASPhyClass map[string]*SASPhy — linux/amd64 + func (spc *SASPhyClass) GetByName(name string) *SASPhy + type SASPort struct — linux/amd64 + EndDevices []string + Expanders []string + Name string + SASPhys []string + type SASPortClass map[string]*SASPort — linux/amd64 + func (spc *SASPortClass) GetByEndDevice(name string) *SASPort + func (spc *SASPortClass) GetByExpander(name string) *SASPort + func (spc *SASPortClass) GetByName(name string) *SASPort + func (spc *SASPortClass) GetByPhy(name string) *SASPort + type SCSITape struct — linux/amd64 + Counters SCSITapeCounters + Name string + type SCSITapeClass map[string]SCSITape — linux/amd64 + type SCSITapeCounters struct — linux/amd64 + InFlight uint64 + IoNs uint64 + OtherCnt uint64 + ReadByteCnt uint64 + ReadCnt uint64 + ReadNs uint64 + ResidCnt uint64 + WriteByteCnt uint64 + WriteCnt uint64 + WriteNs uint64 + type SystemCPUCpufreqStats struct — linux/amd64 + AvailableGovernors string + CpuinfoCurrentFrequency *uint64 + CpuinfoMaximumFrequency *uint64 + CpuinfoMinimumFrequency *uint64 + CpuinfoTransitionLatency *uint64 + Driver string + Governor string + Name string + RelatedCpus string + ScalingCurrentFrequency *uint64 + ScalingMaximumFrequency *uint64 + ScalingMinimumFrequency *uint64 + SetSpeed string + type VMStat struct — linux/amd64 + NrActiveAnon uint64 + NrActiveFile uint64 + NrAnonPages uint64 + NrAnonTransparentHugepages uint64 + NrBounce uint64 + NrDirtied uint64 + NrDirty uint64 + NrFileHugepages uint64 + NrFilePages uint64 + NrFilePmdmapped uint64 + NrFollPinAcquired uint64 + NrFollPinReleased uint64 + NrFreeCma uint64 + NrFreePages uint64 + NrInactiveAnon uint64 + NrInactiveFile uint64 + NrIsolatedAnon uint64 + NrIsolatedFile uint64 + NrKernelMiscReclaimable uint64 + NrKernelStack uint64 + NrMapped uint64 + NrMlock uint64 + NrPageTablePages uint64 + NrShmem uint64 + NrShmemHugepages uint64 + NrShmemPmdmapped uint64 + NrSlabReclaimable uint64 + NrSlabUnreclaimable uint64 + NrUnevictable uint64 + NrVmscanImmediateReclaim uint64 + NrVmscanWrite uint64 + NrWriteback uint64 + NrWritebackTemp uint64 + NrWritten uint64 + NrZoneActiveAnon uint64 + NrZoneActiveFile uint64 + NrZoneInactiveAnon uint64 + NrZoneInactiveFile uint64 + NrZoneUnevictable uint64 + NrZoneWritePending uint64 + NrZspages uint64 + NumaForeign uint64 + NumaHit uint64 + NumaInterleave uint64 + NumaLocal uint64 + NumaMiss uint64 + NumaOther uint64 + WorkingsetActivate uint64 + WorkingsetNodereclaim uint64 + WorkingsetNodes uint64 + WorkingsetRefault uint64 + WorkingsetRestore uint64 + type Vulnerability struct — linux/amd64 + CodeName string + Mitigation string + State int