Documentation
¶
Index ¶
- func CollectFirmwareBoot() *payload.FirmwareBoot
- func CollectFqdn(shortHostname string) string
- func CollectGrubSnapshot() *payload.GrubSnapshot
- func CollectHighRiskProcessSurface() *payload.HighRiskProcessSurface
- func CollectHostProcess() *payload.HostProcess
- func CollectKernelModules() *payload.KernelModulesBlock
- func CollectOSInfo() (payload.OSInfo, string)
- func CollectSelinuxApparmor() *payload.SelinuxApparmorBlock
- func CollectSysctlLiveProfile() *payload.SysctlLiveBlock
- func CollectSysctlOverlay() *payload.SysctlOverlayBlock
- func CollectSystemdHealth() *payload.SystemdHealth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectFirmwareBoot ¶
func CollectFirmwareBoot() *payload.FirmwareBoot
CollectFirmwareBoot detects UEFI vs BIOS hints (no root required for sysfs).
func CollectFqdn ¶
CollectFqdn derives a UI FQDN: dotted /etc/hostname if present, then hostname -f, -A, and shortHostname + hostname -d (GNU) when a DNS domain suffix is available.
func CollectGrubSnapshot ¶
func CollectGrubSnapshot() *payload.GrubSnapshot
CollectGrubSnapshot parses /etc/default/grub and optionally peeks grub.cfg (no secrets).
func CollectHighRiskProcessSurface ¶
func CollectHighRiskProcessSurface() *payload.HighRiskProcessSurface
CollectHighRiskProcessSurface samples TCP listeners and root-owned processes with exe/cmdline hints.
func CollectHostProcess ¶
func CollectHostProcess() *payload.HostProcess
CollectHostProcess builds top CPU/RSS merge and interpreter / heuristic signals (M1).
func CollectKernelModules ¶
func CollectKernelModules() *payload.KernelModulesBlock
CollectKernelModules lists loaded modules from /proc/modules (capped) with denylist hits.
func CollectOSInfo ¶
CollectOSInfo sends pretty/kernel, raw /etc/os-release fields, and gopsutil host.Info. The API derives distro_id / distro_version_id / distro_name for EOL (see backend src/ingest/os_normalize). The second return is the host name from host.Info (for dashboard titles), or "" if unavailable.
func CollectSelinuxApparmor ¶
func CollectSelinuxApparmor() *payload.SelinuxApparmorBlock
CollectSelinuxApparmor reports SELinux mode and a short AppArmor summary when available.
func CollectSysctlLiveProfile ¶
func CollectSysctlLiveProfile() *payload.SysctlLiveBlock
CollectSysctlLiveProfile reads allowlisted /proc/sys keys (bounded).
func CollectSysctlOverlay ¶
func CollectSysctlOverlay() *payload.SysctlOverlayBlock
CollectSysctlOverlay parses sysctl.conf and sysctl.d, compares to live values for drift.
func CollectSystemdHealth ¶
func CollectSystemdHealth() *payload.SystemdHealth
CollectSystemdHealth reports systemd default target and running state when systemctl exists.
Types ¶
This section is empty.