| 123456789101112131415161718192021222324252627282930313233 |
- // +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
- package mem
- import (
- "context"
- "github.com/shirou/gopsutil/internal/common"
- )
- func VirtualMemory() (*VirtualMemoryStat, error) {
- return VirtualMemoryWithContext(context.Background())
- }
- func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func SwapMemory() (*SwapMemoryStat, error) {
- return SwapMemoryWithContext(context.Background())
- }
- func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func SwapDevices() ([]*SwapDevice, error) {
- return SwapDevicesWithContext(context.Background())
- }
- func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
- return nil, common.ErrNotImplementedError
- }
|