host_fallback.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
  2. package host
  3. import (
  4. "context"
  5. "github.com/shirou/gopsutil/internal/common"
  6. )
  7. func HostIDWithContext(ctx context.Context) (string, error) {
  8. return "", common.ErrNotImplementedError
  9. }
  10. func numProcs(ctx context.Context) (uint64, error) {
  11. return 0, common.ErrNotImplementedError
  12. }
  13. func BootTimeWithContext(ctx context.Context) (uint64, error) {
  14. return 0, common.ErrNotImplementedError
  15. }
  16. func UptimeWithContext(ctx context.Context) (uint64, error) {
  17. return 0, common.ErrNotImplementedError
  18. }
  19. func UsersWithContext(ctx context.Context) ([]UserStat, error) {
  20. return []UserStat{}, common.ErrNotImplementedError
  21. }
  22. func VirtualizationWithContext(ctx context.Context) (string, string, error) {
  23. return "", "", common.ErrNotImplementedError
  24. }
  25. func KernelVersionWithContext(ctx context.Context) (string, error) {
  26. return "", common.ErrNotImplementedError
  27. }
  28. func PlatformInformationWithContext(ctx context.Context) (string, string, string, error) {
  29. return "", "", "", common.ErrNotImplementedError
  30. }
  31. func SensorsTemperaturesWithContext(ctx context.Context) ([]TemperatureStat, error) {
  32. return []TemperatureStat{}, common.ErrNotImplementedError
  33. }
  34. func KernelArch() (string, error) {
  35. return "", common.ErrNotImplementedError
  36. }