package darwin

import "github.com/elastic/go-sysinfo/providers/darwin"

Package darwin implements the HostProvider and ProcessProvider interfaces for providing information about MacOS.

Index

Functions

func Architecture

func Architecture() (string, error)

func BootTime

func BootTime() (time.Time, error)

func KernelVersion

func KernelVersion() (string, error)

func MachineID

func MachineID() (string, error)

MachineID returns the Hardware UUID also accessible via About this Mac -> System Report and as the field IOPlatformUUID in the output of "ioreg -d2 -c IOPlatformExpertDevice".

func MemTotal

func MemTotal() (uint64, error)

func OperatingSystem

func OperatingSystem() (*types.OSInfo, error)

Source Files

arch_darwin.go boottime_darwin.go doc.go host_darwin.go kernel_darwin.go machineid_darwin.go memory_darwin.go os.go process_darwin.go syscall_darwin.go ztypes_darwin.go

Version
v1.8.1
Published
Jul 7, 2022
Platform
darwin/amd64
Imports
18 packages
Last checked
1 hour ago

Tools for package owners.