blob: 3694fe11abaf412dfeeb9a45cde0f1b8bd9a3128 [file] [log] [blame]
Mateusz Zalega6a058e72022-11-30 18:03:07 +01001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "wrapngo",
5 srcs = [
6 "duct_tape.go",
7 "wrapn.go",
8 ],
9 importpath = "source.monogon.dev/cloud/shepherd/equinix/wrapngo",
10 visibility = ["//visibility:public"],
11 deps = [
12 "@com_github_cenkalti_backoff_v4//:backoff",
13 "@com_github_google_uuid//:uuid",
14 "@com_github_packethost_packngo//:packngo",
15 "@io_k8s_klog_v2//:klog",
16 ],
17)
18
19go_test(
20 name = "wrapngo_test",
21 timeout = "eternal",
22 srcs = ["wrapngo_test.go"],
23 args = ["-test.v"],
24 embed = [":wrapngo"],
25 deps = [
26 "@com_github_packethost_packngo//:packngo",
27 "@org_golang_x_crypto//ssh",
28 ],
29)