host_mem.go 340 Bytes
Newer Older
Lei Li's avatar
Lei Li committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package resources

import (
	"github.com/shirou/gopsutil/mem"
)

func GetHostVirtualMemory() (*mem.VirtualMemoryStat, error) {
	return mem.VirtualMemory()
}

func GetHostVirtualMemoryEx() (*mem.VirtualMemoryExStat, error) {
	return mem.VirtualMemoryEx()
}

func GetHostSwapMemory() (*mem.SwapMemoryStat, error) {
	return mem.SwapMemory()
}