Documentation
¶
Overview ¶
Package identity provides machine identity resolution for the agent, including machine ID and hostname discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDarwinMachineID ¶
GetDarwinMachineID retrieves the machine ID on macOS by parsing the IOPlatformUUID from ioreg output.
Types ¶
type Identity ¶
type Identity struct {
// MachineID is the unique machine identifier, typically from
// /etc/machine-id on Linux or IOPlatformUUID on macOS.
MachineID string `json:"machine_id"`
// Hostname is the resolved hostname, either from configuration
// or system detection.
Hostname string `json:"hostname"`
}
Identity holds the resolved machine identity for an agent.
Click to show internal directories.
Click to hide internal directories.