16 lines
281 B
Go
16 lines
281 B
Go
//go:build !linux
|
|
|
|
package beach
|
|
|
|
import (
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
// CollectHost has no portable source off Linux; Beach is meant to run on the homelab box.
|
|
func CollectHost() Host {
|
|
h := Host{CPUs: runtime.NumCPU(), Disks: []Filesystem{}}
|
|
h.Hostname, _ = os.Hostname()
|
|
return h
|
|
}
|