Initial Beach: homelab control panel
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
6938da4d7a
18 files changed
+2071
No files matched your search
@@ -0,0 +1,15 @@
|
||||
//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
|
||||
}
|
||||
Reference in new issue
Block a user