load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "artifacts", srcs = ["artifacts_service.go"], importpath = "edge-infra.dev/pkg/edge/api/services/artifacts", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/apierror/sql", "//pkg/edge/api/services/interfaces", "//pkg/edge/api/sql", "//pkg/edge/api/types", "//pkg/edge/api/utils", "@com_github_google_go_containerregistry//pkg/name", ], ) go_test( name = "artifacts_test", srcs = ["artifacts_service_test.go"], embed = [":artifacts"], deps = [ "//pkg/edge/api/services/cluster", "//pkg/edge/api/services/cluster/label", "//pkg/edge/api/sql", "//pkg/edge/constants/api/fleet", "//pkg/lib/runtime/version", "@com_github_data_dog_go_sqlmock//:go-sqlmock", "@com_github_google_uuid//:uuid", "@com_github_stretchr_testify//assert", ], )