...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "edgeencrypt",
5 srcs = [
6 "api.go",
7 "bearer_token.go",
8 "decrypt.go",
9 "encrypt.go",
10 "kms.go",
11 "middleware.go",
12 "pki.go",
13 "rsa.go",
14 ],
15 importpath = "edge-infra.dev/pkg/edge/edgeencrypt",
16 visibility = ["//visibility:public"],
17 deps = [
18 "//pkg/lib/fog",
19 "@com_github_gin_contrib_requestid//:requestid",
20 "@com_github_gin_gonic_gin//:gin",
21 "@com_github_go_logr_logr//:logr",
22 "@com_github_golang_jwt_jwt//:jwt",
23 "@com_github_penglongli_gin_metrics//ginmetrics",
24 "@com_google_cloud_go_kms//apiv1",
25 "@com_google_cloud_go_kms//apiv1/kmspb",
26 "@io_k8s_api//core/v1:core",
27 "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
28 "@io_k8s_sigs_controller_runtime//pkg/client",
29 "@org_golang_google_protobuf//types/known/wrapperspb",
30 ],
31)
32
33go_test(
34 name = "edgeencrypt_test",
35 srcs = [
36 "api_test.go",
37 "bearer_token_test.go",
38 "encrypt_test.go",
39 "kms_test.go",
40 "rsa_test.go",
41 ],
42 data = glob(["testdata/**"]),
43 embed = [":edgeencrypt"],
44 embedsrcs = ["testdata/tlog.json"],
45 deps = [
46 "@com_github_golang_jwt_jwt//:jwt",
47 "@com_github_google_uuid//:uuid",
48 "@com_google_cloud_go_kms//apiv1",
49 "@com_google_cloud_go_kms//apiv1/kmspb",
50 ],
51)
View as plain text