source

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source interface {
	Name() string
	Available() bool
}

Source is the common interface that all data sources implement. It provides identity and availability information only.

Source-specific typed methods (e.g. proc.Stat, ipmi.SDR) are declared on each source package's own interface/struct; this interface exists for future visibility/registry use (deferred per design decision F) and is intentionally minimal so that adding a source does not require editing a shared interface declaration.

Directories

Path Synopsis
Package dcmi provides a data source that calls Huawei Ascend NPU's DCMI (Device Control Management Interface) C library libdcmi.so via CGo.
Package dcmi provides a data source that calls Huawei Ascend NPU's DCMI (Device Control Management Interface) C library libdcmi.so via CGo.
Package dmesg provides a data source that returns the kernel ring buffer text via the external `dmesg` command.
Package dmesg provides a data source that returns the kernel ring buffer text via the external `dmesg` command.
Package dmidecode provides a data source that runs the external `dmidecode --type 17` command and parses its SMBIOS Memory Device entries into typed structs describing installed DIMMs.
Package dmidecode provides a data source that runs the external `dmidecode --type 17` command and parses its SMBIOS Memory Device entries into typed structs describing installed DIMMs.
Package hccn_tool provides a data source that wraps the `hccn_tool` command for NPU network diagnostics (bandwidth, RoCE speed/link).
Package hccn_tool provides a data source that wraps the `hccn_tool` command for NPU network diagnostics (bandwidth, RoCE speed/link).
Package ipmi provides a data source that queries an external `ipmitool` command for sensor readings (SDR) and instantaneous power (DCMI).
Package ipmi provides a data source that queries an external `ipmitool` command for sensor readings (SDR) and instantaneous power (DCMI).
Package lscpu provides a data source that runs the external `lscpu` command and parses its output into a CPU topology struct.
Package lscpu provides a data source that runs the external `lscpu` command and parses its output into a CPU topology struct.
Package lspci provides a data source that runs the external `lspci` command and caches PCI device descriptions.
Package lspci provides a data source that runs the external `lspci` command and caches PCI device descriptions.
Package mce provides a data source that counts Machine Check Exception (MCE) events from the kernel log, distinguishing Corrected (CE) and Uncorrected (UCE/UE) errors per CPU socket.
Package mce provides a data source that counts Machine Check Exception (MCE) events from the kernel log, distinguishing Corrected (CE) and Uncorrected (UCE/UE) errors per CPU socket.
Package npu_smi provides a data source that wraps the `npu-smi info -t` subcommands (topology, HCCS bandwidth).
Package npu_smi provides a data source that wraps the `npu-smi info -t` subcommands (topology, HCCS bandwidth).
Package nvidia_smi provides a data source that wraps the `nvidia-smi` command for NVIDIA GPU metrics.
Package nvidia_smi provides a data source that wraps the `nvidia-smi` command for NVIDIA GPU metrics.
Package proc provides a data source that reads and parses the Linux /proc virtual filesystem.
Package proc provides a data source that reads and parses the Linux /proc virtual filesystem.
Package smartctl provides a data source that wraps the external `smartctl` command (from smartmontools) to query disk SMART health.
Package smartctl provides a data source that wraps the external `smartctl` command (from smartmontools) to query disk SMART health.
Package statfs provides a data source that wraps the statfs(2) system call to report filesystem block usage for a given mount path.
Package statfs provides a data source that wraps the statfs(2) system call to report filesystem block usage for a given mount path.
Package sys provides a data source that reads and parses the Linux /sys virtual filesystem.
Package sys provides a data source that reads and parses the Linux /sys virtual filesystem.

Jump to

Keyboard shortcuts

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