...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "artifacts",
5 srcs = ["artifacts_service.go"],
6 importpath = "edge-infra.dev/pkg/edge/api/services/artifacts",
7 visibility = ["//visibility:public"],
8 deps = [
9 "//pkg/edge/api/apierror/sql",
10 "//pkg/edge/api/services/interfaces",
11 "//pkg/edge/api/sql",
12 "//pkg/edge/api/types",
13 "//pkg/edge/api/utils",
14 "@com_github_google_go_containerregistry//pkg/name",
15 ],
16)
17
18go_test(
19 name = "artifacts_test",
20 srcs = ["artifacts_service_test.go"],
21 embed = [":artifacts"],
22 deps = [
23 "//pkg/edge/api/services/cluster",
24 "//pkg/edge/api/services/cluster/label",
25 "//pkg/edge/api/sql",
26 "//pkg/edge/constants/api/fleet",
27 "//pkg/lib/runtime/version",
28 "@com_github_data_dog_go_sqlmock//:go-sqlmock",
29 "@com_github_google_uuid//:uuid",
30 "@com_github_stretchr_testify//assert",
31 ],
32)
View as plain text