mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00

This commit adds support for VirtualMemory() in package mem. The support only extends to total memory capcity, since that is all that is required in Nomad. It does take into account global versus non-global zones, and does not use cgo. This has been tested inside a zone in the Joyent public cloud for a non-global zone, and in the global zone of a SmartOS virtual machine.
14 lines
315 B
Go
14 lines
315 B
Go
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
|
|
|
package mem
|
|
|
|
import "github.com/shirou/gopsutil/internal/common"
|
|
|
|
func VirtualMemory() (*VirtualMemoryStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|
|
|
|
func SwapMemory() (*SwapMemoryStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|