package darwin
import "github.com/elastic/go-sysinfo/providers/darwin"
Package darwin implements the HostProvider and ProcessProvider interfaces for providing information about MacOS.
Index ¶
- func Architecture() (string, error)
- func BootTime() (time.Time, error)
- func KernelVersion() (string, error)
- func MachineID() (string, error)
- func MemTotal() (uint64, error)
- func OperatingSystem() (*types.OSInfo, error)
Functions ¶
func Architecture ¶
func BootTime ¶
func KernelVersion ¶
func MachineID ¶
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 OperatingSystem ¶
Source Files ¶
arch_darwin.go boottime_darwin.go doc.go host_darwin.go kernel_darwin.go load_average_darwin.go machineid_darwin.go memory_darwin.go os.go process_cgo_darwin.go process_darwin.go syscall_cgo_darwin.go syscall_darwin.go ztypes_darwin.go
- Version
- v1.11.0
- Published
- Jun 1, 2023
- Platform
- darwin/amd64
- Imports
- 18 packages
- Last checked
- 1 hour ago –
Tools for package owners.