memstatus

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2016 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

memstatus provides functions that provide information about both RAM and swap on the host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeMemory

func FreeMemory(units string) (int, error)

FreeMemory returns the amount of memory that's currently unoccupied. units : b, kb, mb, gb, tb, percent

func FreeSwap

func FreeSwap(units string) (int, error)

func UsedMemory

func UsedMemory(units string) (int, error)

FreeMemory returns the amount of memory that's currently unoccupied. units : b, kb, mb, gb, tb, percent

func UsedSwap

func UsedSwap(units string) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL