load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "magpie", srcs = [ "config.go", "decrypt.go", "server.go", ], importpath = "edge-infra.dev/pkg/edge/datasync/magpie", 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", "@com_google_cloud_go_kms//apiv1", "@com_google_cloud_go_kms//apiv1/kmspb", "@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", "@org_golang_google_grpc//codes", "@org_golang_google_grpc//status", "@org_golang_google_protobuf//types/known/wrapperspb", ], ) go_test( name = "magpie_test", srcs = ["server_test.go"], embed = [":magpie"], 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", ], )