shirou_gopsutil/mem/mem_fallback.go

35 lines
950 B
Go
Raw Permalink Normal View History

2023-09-10 02:31:10 +08:00
//go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows && !plan9 && !aix && !netbsd
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows,!plan9,!aix,!netbsd
package mem
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
)
func VirtualMemory() (*VirtualMemoryStat, error) {
2017-12-31 14:25:49 +08:00
return VirtualMemoryWithContext(context.Background())
}
func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
return nil, common.ErrNotImplementedError
}
func SwapMemory() (*SwapMemoryStat, error) {
2017-12-31 14:25:49 +08:00
return SwapMemoryWithContext(context.Background())
}
func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
return nil, common.ErrNotImplementedError
}
2021-08-18 21:52:13 +08:00
func SwapDevices() ([]*SwapDevice, error) {
return SwapDevicesWithContext(context.Background())
}
func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
return nil, common.ErrNotImplementedError
}