...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "device",
5 srcs = [
6 "account.go",
7 "chaos.go",
8 "cloudsvc.go",
9 "method.go",
10 "method_local.go",
11 "policy.go",
12 "selfservice.go",
13 "storage.go",
14 ],
15 importpath = "edge-infra.dev/pkg/edge/iam/device",
16 visibility = ["//visibility:public"],
17 deps = [
18 "//pkg/edge/iam/apperror",
19 "//pkg/edge/iam/config",
20 "//pkg/edge/iam/log",
21 "//pkg/edge/iam/profile",
22 "//pkg/edge/iam/prometheus",
23 "//pkg/edge/iam/util",
24 "@com_github_gin_gonic_gin//:gin",
25 "@com_github_golang_jwt_jwt//:jwt",
26 "@com_github_golang_jwt_jwt_v5//:jwt",
27 "@com_github_google_uuid//:uuid",
28 "@com_github_gorilla_sessions//:sessions",
29 "@com_github_micahparks_keyfunc_v2//:keyfunc",
30 "@org_golang_x_crypto//bcrypt",
31 ],
32)
33
34go_test(
35 name = "device_test",
36 srcs = [
37 "method_test.go",
38 "policy_test.go",
39 ],
40 embed = [":device"],
41 deps = [
42 "//pkg/edge/iam/profile",
43 "@com_github_stretchr_testify//assert",
44 "@tools_gotest_v3//assert",
45 ],
46)
View as plain text