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_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.2.1
Published
Jan 3, 2020
Platform
darwin/amd64
Imports
18 packages
Last checked
1 hour ago

Tools for package owners.