c/a/a: add initial API for HW report
This adds an initial API for the hardware report to be implemented in
the agent.
Change-Id: If9781169cd98c730a5f471e622b3511b46dd1e4f
Reviewed-on: https://review.monogon.dev/c/monogon/+/964
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/cloud/agent/api/BUILD.bazel b/cloud/agent/api/BUILD.bazel
new file mode 100644
index 0000000..3742cf5
--- /dev/null
+++ b/cloud/agent/api/BUILD.bazel
@@ -0,0 +1,23 @@
+load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
+
+proto_library(
+ name = "api_proto",
+ srcs = ["agent.proto"],
+ visibility = ["//visibility:public"],
+)
+
+go_proto_library(
+ name = "api_go_proto",
+ importpath = "source.monogon.dev/cloud/agent/api",
+ proto = ":api_proto",
+ visibility = ["//visibility:public"],
+)
+
+go_library(
+ name = "api",
+ embed = [":api_go_proto"],
+ importpath = "source.monogon.dev/cloud/agent/api",
+ visibility = ["//visibility:public"],
+)