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 NativeArchitecture

func NativeArchitecture() (string, error)

func OperatingSystem

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

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.14.0
Published
Apr 5, 2024
Platform
darwin/amd64
Imports
18 packages
Last checked
34 minutes ago

Tools for package owners.