load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "forwarder", srcs = [ "doc.go", "forwarder.go", "metrics.go", "name.go", "subscriber.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/forwarder", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/kinform/sql", "//pkg/f8n/sovereign/model", "//pkg/f8n/warehouse/oci/remote", "//pkg/lib/fog", "//pkg/lib/runtime/healthz", "//pkg/lib/runtime/manager", "//pkg/lib/runtime/metrics", "//pkg/lib/runtime/subscriber", "@com_github_google_go_containerregistry//pkg/name", "@com_github_peterbourgon_ff_v3//:ff", "@com_github_prometheus_client_golang//prometheus", "@com_google_cloud_go_pubsub//:pubsub", "@org_uber_go_multierr//:multierr", ], ) go_test( name = "forwarder_test", srcs = ["name_test.go"], embed = [":forwarder"], deps = [ "@com_github_google_go_containerregistry//pkg/name", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )