1// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows 2 3package host 4 5import ( 6 "context" 7 8 "github.com/shirou/gopsutil/internal/common" 9) 10 11func Info() (*InfoStat, error) { 12 return InfoWithContext(context.Background()) 13} 14 15func InfoWithContext(ctx context.Context) (*InfoStat, error) { 16 return nil, common.ErrNotImplementedError 17} 18 19func BootTime() (uint64, error) { 20 return BootTimeWithContext(context.Background()) 21} 22 23func BootTimeWithContext(ctx context.Context) (uint64, error) { 24 return 0, common.ErrNotImplementedError 25} 26 27func Uptime() (uint64, error) { 28 return UptimeWithContext(context.Background()) 29} 30 31func UptimeWithContext(ctx context.Context) (uint64, error) { 32 return 0, common.ErrNotImplementedError 33} 34 35func Users() ([]UserStat, error) { 36 return UsersWithContext(context.Background()) 37} 38 39func UsersWithContext(ctx context.Context) ([]UserStat, error) { 40 return []UserStat{}, common.ErrNotImplementedError 41} 42 43func Virtualization() (string, string, error) { 44 return VirtualizationWithContext(context.Background()) 45} 46 47func VirtualizationWithContext(ctx context.Context) (string, string, error) { 48 return "", "", common.ErrNotImplementedError 49} 50 51func KernelVersion() (string, error) { 52 return KernelVersionWithContext(context.Background()) 53} 54 55func KernelVersionWithContext(ctx context.Context) (string, error) { 56 return "", common.ErrNotImplementedError 57} 58 59func PlatformInformation() (string, string, string, error) { 60 return PlatformInformationWithContext(context.Background()) 61} 62 63func PlatformInformationWithContext(ctx context.Context) (string, string, string, error) { 64 return "", "", "", common.ErrNotImplementedError 65} 66