2021-12-23 05:54:41 +08:00
|
|
|
//go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows && !plan9 && !aix
|
2021-11-09 21:14:54 +08:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows,!plan9,!aix
|
2016-08-23 06:31:26 +08:00
|
|
|
|
|
|
|
package mem
|
|
|
|
|
2017-12-31 14:25:49 +08:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2021-11-06 17:53:56 +08:00
|
|
|
"github.com/shirou/gopsutil/v3/internal/common"
|
2017-12-31 14:25:49 +08:00
|
|
|
)
|
2016-08-23 06:31:26 +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) {
|
2016-08-23 06:31:26 +08:00
|
|
|
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) {
|
2016-08-23 06:31:26 +08:00
|
|
|
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
|
|
|
|
}
|