blob: 4934ad2461f42087bd07101fde7af0c4cf73ba81 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "scruffy",
srcs = [
"bmdb_stats.go",
"hw_stats.go",
"labels.go",
"server.go",
],
importpath = "source.monogon.dev/cloud/bmaas/scruffy",
visibility = ["//visibility:public"],
deps = [
"//cloud/bmaas/bmdb",
"//cloud/bmaas/bmdb/metrics",
"//cloud/bmaas/bmdb/model",
"//cloud/bmaas/bmdb/webug",
"//cloud/bmaas/server/api",
"//cloud/lib/component",
"//go/algorithm/cartesian",
"@com_github_cenkalti_backoff_v4//:backoff",
"@com_github_google_uuid//:uuid",
"@com_github_prometheus_client_golang//prometheus",
"@io_k8s_klog_v2//:klog",
"@org_golang_google_protobuf//proto",
],
)
go_test(
name = "scruffy_test",
srcs = [
"bmdb_stats_test.go",
"hw_stats_test.go",
],
data = [
"@cockroach",
],
embed = [":scruffy"],
deps = [
"//cloud/agent/api",
"//cloud/bmaas/bmdb",
"//cloud/bmaas/bmdb/model",
"//cloud/bmaas/server/api",
"//cloud/lib/component",
"@com_github_prometheus_client_golang//prometheus",
"@org_golang_google_protobuf//proto",
],
)