summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/waiter/BUILD')
-rw-r--r--pkg/waiter/BUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/waiter/BUILD b/pkg/waiter/BUILD
new file mode 100644
index 000000000..852480a09
--- /dev/null
+++ b/pkg/waiter/BUILD
@@ -0,0 +1,35 @@
+load("//tools:defs.bzl", "go_library", "go_test")
+load("//tools/go_generics:defs.bzl", "go_template_instance")
+
+package(licenses = ["notice"])
+
+go_template_instance(
+ name = "waiter_list",
+ out = "waiter_list.go",
+ package = "waiter",
+ prefix = "waiter",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Element": "*Entry",
+ "Linker": "*Entry",
+ },
+)
+
+go_library(
+ name = "waiter",
+ srcs = [
+ "waiter.go",
+ "waiter_list.go",
+ ],
+ visibility = ["//visibility:public"],
+ deps = ["//pkg/sync"],
+)
+
+go_test(
+ name = "waiter_test",
+ size = "small",
+ srcs = [
+ "waiter_test.go",
+ ],
+ library = ":waiter",
+)