2019-04-05 21:51:49 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
2023-07-28 17:14:50 +00:00
|
|
|
name = "cmc-proxy_lib",
|
2019-04-05 21:51:49 +00:00
|
|
|
srcs = [
|
|
|
|
"client.go",
|
|
|
|
"main.go",
|
|
|
|
],
|
2019-07-21 13:20:51 +00:00
|
|
|
importpath = "code.hackerspace.pl/hscloud/dc/cmc-proxy",
|
2019-04-05 21:51:49 +00:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2023-07-28 17:14:50 +00:00
|
|
|
"//dc/cmc-proxy/proto",
|
|
|
|
"//go/mirko",
|
|
|
|
"@com_github_cenkalti_backoff//:backoff",
|
|
|
|
"@com_github_golang_glog//:glog",
|
|
|
|
"@org_golang_google_grpc//codes",
|
|
|
|
"@org_golang_google_grpc//status",
|
2019-04-05 21:51:49 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "cmc-proxy",
|
2023-07-28 17:14:50 +00:00
|
|
|
embed = [":cmc-proxy_lib"],
|
2019-04-05 21:51:49 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|