cloud: split shepherd up
Change-Id: I8e386d9eaaf17543743e1e8a37a8d71426910d59
Reviewed-on: https://review.monogon.dev/c/monogon/+/2213
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/cloud/equinix/wrapngo/BUILD.bazel b/cloud/equinix/wrapngo/BUILD.bazel
new file mode 100644
index 0000000..1574a6a
--- /dev/null
+++ b/cloud/equinix/wrapngo/BUILD.bazel
@@ -0,0 +1,31 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "wrapngo",
+ srcs = [
+ "duct_tape.go",
+ "metrics.go",
+ "wrapn.go",
+ ],
+ importpath = "source.monogon.dev/cloud/equinix/wrapngo",
+ visibility = ["//visibility:public"],
+ deps = [
+ "@com_github_cenkalti_backoff_v4//:backoff",
+ "@com_github_google_uuid//:uuid",
+ "@com_github_packethost_packngo//:packngo",
+ "@com_github_prometheus_client_golang//prometheus",
+ "@io_k8s_klog_v2//:klog",
+ ],
+)
+
+go_test(
+ name = "wrapngo_test",
+ timeout = "eternal",
+ srcs = ["wrapngo_live_test.go"],
+ args = ["-test.v"],
+ embed = [":wrapngo"],
+ deps = [
+ "@com_github_packethost_packngo//:packngo",
+ "@org_golang_x_crypto//ssh",
+ ],
+)