mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00

This commit adds support for Info(), BootTime() and Uptime() in package Host. It uses no cgo, preferring to parse the output of `kstat -p` instead. Thanks go to @gfrey for the parsing logic for `/etc/release` and `uname`.
22 lines
451 B
Go
22 lines
451 B
Go
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
|
|
|
package host
|
|
|
|
import "github.com/shirou/gopsutil/internal/common"
|
|
|
|
func Info() (*InfoStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|
|
|
|
func BootTime() (uint64, error) {
|
|
return 0, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Uptime() (uint64, error) {
|
|
return 0, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Users() ([]UserStat, error) {
|
|
return []UserStat{}, common.ErrNotImplementedError
|
|
}
|