...

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

Documentation: edge-infra.dev/pkg/edge/bsl

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "bsl",
     5    srcs = [
     6        "bsl_client.go",
     7        "config.go",
     8        "constants.go",
     9        "utils.go",
    10        "watch.go",
    11    ],
    12    importpath = "edge-infra.dev/pkg/edge/bsl",
    13    visibility = ["//visibility:public"],
    14    deps = [
    15        "//pkg/edge/api/apierror/bsl",
    16        "//pkg/edge/api/bsl/types",
    17        "//pkg/edge/api/graph/model",
    18        "//pkg/edge/api/middleware",
    19        "//pkg/edge/api/utils",
    20        "//pkg/edge/constants/api/banner",
    21        "@com_github_go_logr_logr//:logr",
    22        "@com_github_go_resty_resty_v2//:resty",
    23        "@com_github_google_uuid//:uuid",
    24        "@com_github_ncr_corporation_ncr_bsp_hmac_go//sign",
    25        "@com_github_rs_zerolog//log",
    26        "@io_k8s_api//core/v1:core",
    27        "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
    28        "@io_k8s_apimachinery//pkg/fields",
    29        "@io_k8s_apimachinery//pkg/watch",
    30        "@io_k8s_sigs_controller_runtime//pkg/client",
    31    ],
    32)
    33
    34go_test(
    35    name = "bsl_test",
    36    srcs = [
    37        "bsl_client_test.go",
    38        "config_test.go",
    39        "utils_test.go",
    40        "watch_test.go",
    41    ],
    42    embed = [":bsl"],
    43    deps = [
    44        "//pkg/edge/api/bsl/types",
    45        "//pkg/edge/api/graph/model",
    46        "//pkg/edge/api/middleware",
    47        "//pkg/edge/api/utils",
    48        "//pkg/edge/auth-proxy/session",
    49        "//pkg/edge/bsl/fake",
    50        "//pkg/edge/constants/api/banner",
    51        "//pkg/lib/logging",
    52        "@com_github_ncr_corporation_ncr_bsp_hmac_go//sign",
    53        "@com_github_stretchr_testify//assert",
    54        "@io_k8s_sigs_controller_runtime//pkg/client/fake",
    55    ],
    56)

View as plain text