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_amd64.go boottime_darwin_amd64.go doc.go host_darwin_amd64.go kernel_darwin_amd64.go machineid_darwin_amd64.go memory_darwin_amd64.go os.go process_darwin_amd64.go syscall_darwin_amd64.go ztypes_darwin_amd64.go
- Version
- v1.0.1
- Published
- May 8, 2019
- Platform
- darwin/amd64
- Imports
- 18 packages
- Last checked
- 5 minutes ago –
Tools for package owners.