load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "sparrow", srcs = [ "config.go", "encrypt.go", "server.go", ], importpath = "edge-infra.dev/pkg/edge/datasync/sparrow", visibility = ["//visibility:public"], deps = [ "//pkg/edge/edgeencrypt", "//pkg/lib/fog", "@com_github_gin_contrib_cors//:cors", "@com_github_gin_contrib_requestid//:requestid", "@com_github_gin_gonic_gin//:gin", "@com_github_go_logr_logr//:logr", "@com_github_peterbourgon_ff_v3//:ff", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/util/runtime", "@io_k8s_client_go//kubernetes/scheme", "@io_k8s_client_go//rest", "@io_k8s_client_go//tools/clientcmd", "@io_k8s_client_go//util/homedir", "@io_k8s_sigs_controller_runtime//pkg/client", ], ) go_test( name = "sparrow_test", srcs = ["server_test.go"], embed = [":sparrow"], deps = [ "//pkg/edge/edgeencrypt", "//pkg/lib/fog", "@com_github_golang_jwt_jwt//:jwt", "@com_github_google_uuid//:uuid", "@io_k8s_sigs_controller_runtime//pkg/client", "@io_k8s_sigs_controller_runtime//pkg/client/fake", "@tools_gotest_v3//assert", ], )