meminfo_deprecated.go 394 B

12345678910111213141516
  1. package system
  2. import "github.com/docker/docker/pkg/meminfo"
  3. // MemInfo contains memory statistics of the host system.
  4. //
  5. // Deprecated: use [meminfo.Memory].
  6. type MemInfo = meminfo.Memory
  7. // ReadMemInfo retrieves memory statistics of the host system and returns a
  8. // MemInfo type.
  9. //
  10. // Deprecated: use [meminfo.Read].
  11. func ReadMemInfo() (*meminfo.Memory, error) {
  12. return meminfo.Read()
  13. }