6a516acb2e
These types and functions are more closely related to the functionality provided by pkg/systeminfo, and used in conjunction with the other functions in that package, so moving them there. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
408 B
Go
16 lines
408 B
Go
package system
|
|
|
|
import "github.com/docker/docker/pkg/sysinfo"
|
|
|
|
// MemInfo contains memory statistics of the host system.
|
|
//
|
|
// Deprecated: use [sysinfo.Memory].
|
|
type MemInfo = sysinfo.Memory
|
|
|
|
// ReadMemInfo retrieves memory statistics of the host system and returns a
|
|
// MemInfo type.
|
|
//
|
|
// Deprecated: use [sysinfo.ReadMemInfo].
|
|
func ReadMemInfo() (*sysinfo.Memory, error) {
|
|
return sysinfo.ReadMemInfo()
|
|
}
|