blob: 521e1ca94b141c910c64eb35d2867554e607a7f9 [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",
Serge Bazanskidea7cd02023-04-26 13:58:17 +02007 "metrics.go",
Mateusz Zalega6a058e72022-11-30 18:03:07 +01008 "wrapn.go",
9 ],
10 importpath = "source.monogon.dev/cloud/shepherd/equinix/wrapngo",
11 visibility = ["//visibility:public"],
12 deps = [
13 "@com_github_cenkalti_backoff_v4//:backoff",
14 "@com_github_google_uuid//:uuid",
15 "@com_github_packethost_packngo//:packngo",
Serge Bazanskidea7cd02023-04-26 13:58:17 +020016 "@com_github_prometheus_client_golang//prometheus",
Mateusz Zalega6a058e72022-11-30 18:03:07 +010017 "@io_k8s_klog_v2//:klog",
18 ],
19)
20
21go_test(
22 name = "wrapngo_test",
23 timeout = "eternal",
Serge Bazanski0d58cb92023-04-17 18:38:56 +020024 srcs = ["wrapngo_live_test.go"],
Mateusz Zalega6a058e72022-11-30 18:03:07 +010025 args = ["-test.v"],
26 embed = [":wrapngo"],
27 deps = [
28 "@com_github_packethost_packngo//:packngo",
29 "@org_golang_x_crypto//ssh",
30 ],
31)