platform

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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