func New() HWInfo {
	return &hwInfo{
		CPU:        cpu.New(),
		System:     system.New(),
		Memory:     memory.New(),
		OpSys:      opsys.New(),
		Interfaces: interfaces.New(),
		data:       &Data{},
		cache:      &Cache{},
	}
}
Esempio n. 2
0
func New() HWInfo {
	return &hwInfo{
		CPU:        cpu.New(),
		Disks:      disks.New(),
		Dock2Box:   dock2box.New(),
		Docker:     docker.New(),
		Containers: containers.New(),
		Images:     images.New(),
		Layers:     layers.New(),
		Interfaces: interfaces.New(),
		PhysVols:   physvols.New(),
		LogVols:    logvols.New(),
		VolGrps:    volgrps.New(),
		Memory:     memory.New(),
		Mounts:     mounts.New(),
		OpSys:      opsys.New(),
		PCI:        pci.New(),
		Routes:     routes.New(),
		Sysctl:     sysctl.New(),
		System:     system.New(),
		data:       &Data{},
		cache:      &Cache{},
	}
}