load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "device", srcs = [ "account.go", "chaos.go", "cloudsvc.go", "method.go", "method_local.go", "policy.go", "selfservice.go", "storage.go", ], importpath = "edge-infra.dev/pkg/edge/iam/device", visibility = ["//visibility:public"], deps = [ "//pkg/edge/iam/apperror", "//pkg/edge/iam/config", "//pkg/edge/iam/log", "//pkg/edge/iam/profile", "//pkg/edge/iam/prometheus", "//pkg/edge/iam/util", "@com_github_gin_gonic_gin//:gin", "@com_github_golang_jwt_jwt//:jwt", "@com_github_golang_jwt_jwt_v5//:jwt", "@com_github_google_uuid//:uuid", "@com_github_gorilla_sessions//:sessions", "@com_github_micahparks_keyfunc_v2//:keyfunc", "@org_golang_x_crypto//bcrypt", ], ) go_test( name = "device_test", srcs = [ "method_test.go", "policy_test.go", ], embed = [":device"], deps = [ "//pkg/edge/iam/profile", "@com_github_stretchr_testify//assert", "@tools_gotest_v3//assert", ], )