Documentation
¶
Overview ¶
Package platform provides cross-platform detection for OSAPI providers. The agent uses this package to select the correct provider variant based on OS family (debian, darwin, or generic linux).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HostInfoFn = host.Info
HostInfoFn is the function used to retrieve host information. Override in tests to simulate different platforms.
Functions ¶
func Detect ¶
func Detect() string
Detect returns the OS family name for provider selection. Returns "debian", "darwin", or "" (generic linux/unknown).
func IsContainer ¶
func IsContainer() bool
IsContainer reports whether the current process is running inside a container. Detects Docker by checking for /.dockerenv.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.