2024-02-17 03:48:29 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2024-05-17 23:55:25 -04:00
|
|
|
//go:build !darwin && !linux && !freebsd && !openbsd && !netbsd && !solaris && !windows && !aix
|
2016-08-22 15:31:26 -07:00
|
|
|
|
|
|
|
package host
|
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-02-17 03:48:29 +00:00
|
|
|
"github.com/shirou/gopsutil/v4/internal/common"
|
2017-12-31 15:25:49 +09:00
|
|
|
)
|
2016-08-22 15:31:26 -07:00
|
|
|
|
2020-09-11 14:51:20 +03:00
|
|
|
func HostIDWithContext(ctx context.Context) (string, error) {
|
|
|
|
return "", common.ErrNotImplementedError
|
2016-08-22 15:31:26 -07:00
|
|
|
}
|
|
|
|
|
2020-09-11 14:51:20 +03:00
|
|
|
func numProcs(ctx context.Context) (uint64, error) {
|
|
|
|
return 0, common.ErrNotImplementedError
|
2017-12-31 15:25:49 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
func BootTimeWithContext(ctx context.Context) (uint64, error) {
|
2016-08-22 15:31:26 -07:00
|
|
|
return 0, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
func UptimeWithContext(ctx context.Context) (uint64, error) {
|
2016-08-22 15:31:26 -07:00
|
|
|
return 0, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
func UsersWithContext(ctx context.Context) ([]UserStat, error) {
|
2016-08-22 15:31:26 -07:00
|
|
|
return []UserStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
2017-08-03 11:08:35 +09:00
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
|
2017-08-03 11:08:35 +09:00
|
|
|
return "", "", common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
func KernelVersionWithContext(ctx context.Context) (string, error) {
|
2017-08-03 11:08:35 +09:00
|
|
|
return "", common.ErrNotImplementedError
|
|
|
|
}
|
2018-03-24 15:57:29 +09:00
|
|
|
|
|
|
|
func PlatformInformationWithContext(ctx context.Context) (string, string, string, error) {
|
|
|
|
return "", "", "", common.ErrNotImplementedError
|
|
|
|
}
|
2020-09-11 14:51:20 +03:00
|
|
|
|
|
|
|
func KernelArch() (string, error) {
|
|
|
|
return "", common.ErrNotImplementedError
|
|
|
|
}
|