load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "chariot", srcs = [ "daemon.go", "metrics.go", "pubsubpull.go", "request.go", "response.go", "storage.go", ], importpath = "edge-infra.dev/pkg/edge/chariot", visibility = ["//visibility:public"], deps = [ "//pkg/edge/chariot/errorsnode", "//pkg/edge/constants", "//pkg/edge/edgeagent/model", "//pkg/lib/mqtt", "@com_github_fluxcd_helm_controller_api//v2beta1", "@com_github_fluxcd_kustomize_controller_api//v1beta2", "@com_github_prometheus_client_golang//prometheus", "@com_github_prometheus_client_golang//prometheus/promauto", "@com_google_cloud_go_pubsub//:pubsub", "@com_google_cloud_go_storage//:storage", "@in_gopkg_yaml_v2//:yaml_v2", "@org_golang_google_api//googleapi", ], ) go_test( name = "chariot_test", srcs = [ "fakegcsserver_test.go", "metrics_test.go", "mockpubsubpull_test.go", "request_test.go", "response_test.go", ], embed = [":chariot"], deps = [ "//pkg/lib/promassert", "@com_github_fsouza_fake_gcs_server//fakestorage", "@com_google_cloud_go_storage//:storage", "@in_gopkg_yaml_v2//:yaml_v2", "@org_golang_google_api//googleapi", "@org_golang_google_api//iterator", ], )