c/agent: add hardware report
This adds an agent which currently just gathers hardware information and
dumps it to stdout.
Change-Id: Idb8518d3e40096dd3dd881808bc6ac98082083a0
Reviewed-on: https://review.monogon.dev/c/monogon/+/1067
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/cloud/agent/main.go b/cloud/agent/main.go
new file mode 100644
index 0000000..210739a
--- /dev/null
+++ b/cloud/agent/main.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "fmt"
+
+ "google.golang.org/protobuf/encoding/prototext"
+)
+
+func main() {
+ report, errs := gatherHWReport()
+ // Just print the report for now
+ fmt.Println(prototext.Format(report))
+ fmt.Println("Encountered errors:", errs)
+}