cluster/identd/ident: add basic ident protocol client
This is the first pass at an ident protocol client. In the end, we want
to implement an ident protocol server for our in-cluster identd, but
starting out with a client helps me getting familiar with the protocol,
and will allow the server implementation to be tested against the
client.
Change-Id: Ic37b84577321533bab2f2fbf7fb53409a5defb95
diff --git a/cluster/identd/ident/BUILD.bazel b/cluster/identd/ident/BUILD.bazel
new file mode 100644
index 0000000..b672c92
--- /dev/null
+++ b/cluster/identd/ident/BUILD.bazel
@@ -0,0 +1,23 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "go_default_library",
+ srcs = [
+ "client.go",
+ "request.go",
+ "response.go",
+ ],
+ importpath = "code.hackerspace.pl/hscloud/cluster/identd/ident",
+ visibility = ["//visibility:public"],
+ deps = ["@com_github_golang_glog//:go_default_library"],
+)
+
+go_test(
+ name = "go_default_test",
+ srcs = [
+ "request_test.go",
+ "response_test.go",
+ ],
+ embed = [":go_default_library"],
+ deps = ["@com_github_go_test_deep//:go_default_library"],
+)