shirou_gopsutil/host/host_fallback.go

51 lines
1.3 KiB
Go
Raw Normal View History

2021-12-23 05:54:41 +08:00
//go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
package host
2017-12-31 14:25:49 +08:00
import (
"context"
"github.com/shirou/gopsutil/v3/internal/common"
2017-12-31 14:25:49 +08:00
)
2020-09-11 19:51:20 +08:00
func HostIDWithContext(ctx context.Context) (string, error) {
return "", common.ErrNotImplementedError
}
2020-09-11 19:51:20 +08:00
func numProcs(ctx context.Context) (uint64, error) {
return 0, common.ErrNotImplementedError
2017-12-31 14:25:49 +08:00
}
func BootTimeWithContext(ctx context.Context) (uint64, error) {
return 0, common.ErrNotImplementedError
}
2017-12-31 14:25:49 +08:00
func UptimeWithContext(ctx context.Context) (uint64, error) {
return 0, common.ErrNotImplementedError
}
2017-12-31 14:25:49 +08:00
func UsersWithContext(ctx context.Context) ([]UserStat, error) {
return []UserStat{}, common.ErrNotImplementedError
}
2017-08-03 10:08:35 +08:00
2017-12-31 14:25:49 +08:00
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
2017-08-03 10:08:35 +08:00
return "", "", common.ErrNotImplementedError
}
2017-12-31 14:25:49 +08:00
func KernelVersionWithContext(ctx context.Context) (string, error) {
2017-08-03 10:08:35 +08:00
return "", common.ErrNotImplementedError
}
func PlatformInformationWithContext(ctx context.Context) (string, string, string, error) {
return "", "", "", common.ErrNotImplementedError
}
2020-09-11 19:51:20 +08:00
func SensorsTemperaturesWithContext(ctx context.Context) ([]TemperatureStat, error) {
return []TemperatureStat{}, common.ErrNotImplementedError
}
func KernelArch() (string, error) {
return "", common.ErrNotImplementedError
}