m/p/bootparam: add Consoles param parser
Adds the Consoles() helper function which processes all console params
and puts them into a set.
Change-Id: I7333bf5c22e6cd79bea0155c6a558e79bf6e824b
Reviewed-on: https://review.monogon.dev/c/monogon/+/1525
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/pkg/bootparam/BUILD.bazel b/metropolis/pkg/bootparam/BUILD.bazel
index 33a9d91..4b63f28 100644
--- a/metropolis/pkg/bootparam/BUILD.bazel
+++ b/metropolis/pkg/bootparam/BUILD.bazel
@@ -2,17 +2,23 @@
go_library(
name = "bootparam",
- srcs = ["bootparam.go"],
+ srcs = [
+ "bootparam.go",
+ "params.go",
+ ],
importpath = "source.monogon.dev/metropolis/pkg/bootparam",
visibility = ["//visibility:public"],
)
go_test(
name = "bootparam_test",
- srcs = ["bootparam_test.go"],
+ srcs = [
+ "bootparam_test.go",
+ "params_test.go",
+ ],
+ embed = [":bootparam"],
gc_goopts = ["-d=libfuzzer"],
deps = [
- ":bootparam",
"//metropolis/pkg/bootparam/ref",
"@com_github_google_go_cmp//cmp",
],