cloud/bmaas: implement BMDB reflection
This is the foundation for runtime introspection of BMDBs, to be used in
debug and operator tooling.
Change-Id: Id1eb0cd1dfd94c5d4dafde82448695497525e24f
Reviewed-on: https://review.monogon.dev/c/monogon/+/1131
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/cloud/bmaas/bmdb/reflection/BUILD.bazel b/cloud/bmaas/bmdb/reflection/BUILD.bazel
new file mode 100644
index 0000000..f685b98
--- /dev/null
+++ b/cloud/bmaas/bmdb/reflection/BUILD.bazel
@@ -0,0 +1,16 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "reflection",
+ srcs = [
+ "reflection.go",
+ "schema.go",
+ ],
+ importpath = "source.monogon.dev/cloud/bmaas/bmdb/reflection",
+ visibility = ["//visibility:public"],
+ deps = [
+ "@com_github_google_uuid//:uuid",
+ "@com_github_iancoleman_strcase//:strcase",
+ "@io_k8s_klog_v2//:klog",
+ ],
+)