1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00
shirou_gopsutil/host/host_fallback.go

58 lines
1.3 KiB
Go
Raw Normal View History

// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
package host
2017-12-31 15:25:49 +09:00
import (
"context"
"github.com/shirou/gopsutil/internal/common"
)
func Info() (*InfoStat, error) {
2017-12-31 15:25:49 +09:00
return InfoWithContext(context.Background())
}
func InfoWithContext(ctx context.Context) (*InfoStat, error) {
return nil, common.ErrNotImplementedError
}
func BootTime() (uint64, error) {
2017-12-31 15:25:49 +09:00
return BootTimeWithContext(context.Background())
}
func BootTimeWithContext(ctx context.Context) (uint64, error) {
return 0, common.ErrNotImplementedError
}
func Uptime() (uint64, error) {
2017-12-31 15:25:49 +09:00
return UptimeWithContext(context.Background())
}
func UptimeWithContext(ctx context.Context) (uint64, error) {
return 0, common.ErrNotImplementedError
}
func Users() ([]UserStat, error) {
2017-12-31 15:25:49 +09:00
return UsersWithContext(context.Background())
}
func UsersWithContext(ctx context.Context) ([]UserStat, error) {
return []UserStat{}, common.ErrNotImplementedError
}
2017-08-03 11:08:35 +09:00
func Virtualization() (string, string, error) {
2017-12-31 15:25:49 +09:00
return VirtualizationWithContext(context.Background())
}
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
2017-08-03 11:08:35 +09:00
return "", "", common.ErrNotImplementedError
}
func KernelVersion() (string, error) {
2017-12-31 15:25:49 +09:00
return KernelVersionWithContext(context.Background())
}
func KernelVersionWithContext(ctx context.Context) (string, error) {
2017-08-03 11:08:35 +09:00
return "", common.ErrNotImplementedError
}