2017-03-15 23:18:39 +00:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
2016-08-30 17:48:07 +00:00
|
|
|
|
|
|
|
package host
|
|
|
|
|
2018-03-06 00:52:43 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
2016-08-30 17:48:07 +00:00
|
|
|
|
|
|
|
func Info() (*InfoStat, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return InfoWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func InfoWithContext(ctx context.Context) (*InfoStat, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func BootTime() (uint64, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return BootTimeWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func BootTimeWithContext(ctx context.Context) (uint64, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return 0, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func Uptime() (uint64, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return UptimeWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func UptimeWithContext(ctx context.Context) (uint64, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return 0, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func Users() ([]UserStat, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return UsersWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func UsersWithContext(ctx context.Context) ([]UserStat, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return []UserStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
2017-08-16 22:05:24 +00:00
|
|
|
|
|
|
|
func Virtualization() (string, string, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return VirtualizationWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
|
2017-08-16 22:05:24 +00:00
|
|
|
return "", "", common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func KernelVersion() (string, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return KernelVersionWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func KernelVersionWithContext(ctx context.Context) (string, error) {
|
2017-08-16 22:05:24 +00:00
|
|
|
return "", common.ErrNotImplementedError
|
|
|
|
}
|
2020-03-15 08:36:59 +00:00
|
|
|
|
|
|
|
func PlatformInformation() (string, string, string, error) {
|
|
|
|
return PlatformInformationWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func PlatformInformationWithContext(ctx context.Context) (string, string, string, error) {
|
|
|
|
return "", "", "", common.ErrNotImplementedError
|
|
|
|
}
|