...

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

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

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "sparrow",
     5    srcs = [
     6        "config.go",
     7        "encrypt.go",
     8        "server.go",
     9    ],
    10    importpath = "edge-infra.dev/pkg/edge/datasync/sparrow",
    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        "@io_k8s_apimachinery//pkg/runtime",
    21        "@io_k8s_apimachinery//pkg/util/runtime",
    22        "@io_k8s_client_go//kubernetes/scheme",
    23        "@io_k8s_client_go//rest",
    24        "@io_k8s_client_go//tools/clientcmd",
    25        "@io_k8s_client_go//util/homedir",
    26        "@io_k8s_sigs_controller_runtime//pkg/client",
    27    ],
    28)
    29
    30go_test(
    31    name = "sparrow_test",
    32    srcs = ["server_test.go"],
    33    embed = [":sparrow"],
    34    deps = [
    35        "//pkg/edge/edgeencrypt",
    36        "//pkg/lib/fog",
    37        "@com_github_golang_jwt_jwt//:jwt",
    38        "@com_github_google_uuid//:uuid",
    39        "@io_k8s_sigs_controller_runtime//pkg/client",
    40        "@io_k8s_sigs_controller_runtime//pkg/client/fake",
    41        "@tools_gotest_v3//assert",
    42    ],
    43)

View as plain text