...

Text file src/edge-infra.dev/pkg/edge/datasync/magpie/BUILD.bazel

Documentation: edge-infra.dev/pkg/edge/datasync/magpie

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "magpie",
     5    srcs = [
     6        "config.go",
     7        "decrypt.go",
     8        "server.go",
     9    ],
    10    importpath = "edge-infra.dev/pkg/edge/datasync/magpie",
    11    visibility = ["//visibility:public"],
    12    deps = [
    13        "//pkg/edge/edgeencrypt",
    14        "//pkg/lib/fog",
    15        "@com_github_gin_contrib_cors//:cors",
    16        "@com_github_gin_contrib_requestid//:requestid",
    17        "@com_github_gin_gonic_gin//:gin",
    18        "@com_github_go_logr_logr//:logr",
    19        "@com_github_peterbourgon_ff_v3//:ff",
    20        "@com_google_cloud_go_kms//apiv1",
    21        "@com_google_cloud_go_kms//apiv1/kmspb",
    22        "@io_k8s_apimachinery//pkg/runtime",
    23        "@io_k8s_apimachinery//pkg/util/runtime",
    24        "@io_k8s_client_go//kubernetes/scheme",
    25        "@io_k8s_client_go//rest",
    26        "@io_k8s_client_go//tools/clientcmd",
    27        "@io_k8s_client_go//util/homedir",
    28        "@io_k8s_sigs_controller_runtime//pkg/client",
    29        "@org_golang_google_grpc//codes",
    30        "@org_golang_google_grpc//status",
    31        "@org_golang_google_protobuf//types/known/wrapperspb",
    32    ],
    33)
    34
    35go_test(
    36    name = "magpie_test",
    37    srcs = ["server_test.go"],
    38    embed = [":magpie"],
    39    deps = [
    40        "//pkg/edge/edgeencrypt",
    41        "//pkg/lib/fog",
    42        "@com_github_golang_jwt_jwt//:jwt",
    43        "@com_github_google_uuid//:uuid",
    44        "@io_k8s_sigs_controller_runtime//pkg/client",
    45        "@io_k8s_sigs_controller_runtime//pkg/client/fake",
    46        "@tools_gotest_v3//assert",
    47    ],
    48)

View as plain text