cloud/bmaa/reflection: render known protos as prototext
This extends the type and value structures of the reflection code to
support arbitrary Protobuf serialized messages. We currently identify
what message type is contained in a column by a hardcoded lookup table.
Change-Id: I31a260b7ed5582678803d27bf6ba30028cbea266
Reviewed-on: https://review.monogon.dev/c/monogon/+/1539
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/cloud/bmaas/bmdb/reflection/BUILD.bazel b/cloud/bmaas/bmdb/reflection/BUILD.bazel
index f685b98..a324dab 100644
--- a/cloud/bmaas/bmdb/reflection/BUILD.bazel
+++ b/cloud/bmaas/bmdb/reflection/BUILD.bazel
@@ -9,8 +9,12 @@
importpath = "source.monogon.dev/cloud/bmaas/bmdb/reflection",
visibility = ["//visibility:public"],
deps = [
+ "//cloud/bmaas/server/api",
"@com_github_google_uuid//:uuid",
"@com_github_iancoleman_strcase//:strcase",
"@io_k8s_klog_v2//:klog",
+ "@org_golang_google_protobuf//encoding/prototext",
+ "@org_golang_google_protobuf//proto",
+ "@org_golang_google_protobuf//reflect/protoreflect",
],
)