2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "fetcher",
|
2023-05-25 12:43:44 -04:00
|
|
|
srcs = [
|
|
|
|
"configapi.go",
|
|
|
|
"fetcher.go",
|
|
|
|
"versionapi.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/api/fetcher",
|
2023-03-09 09:23:42 -05:00
|
|
|
visibility = ["//:__subpackages__"],
|
2023-05-25 12:43:44 -04:00
|
|
|
deps = [
|
|
|
|
"//internal/api/configapi",
|
|
|
|
"//internal/api/versionsapi",
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/sigstore",
|
2023-05-25 12:43:44 -04:00
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "fetcher_test",
|
2023-05-25 12:43:44 -04:00
|
|
|
srcs = [
|
|
|
|
"configapi_test.go",
|
|
|
|
"versionapi_test.go",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
embed = [":fetcher"],
|
|
|
|
deps = [
|
2023-05-25 12:43:44 -04:00
|
|
|
"//internal/api/configapi",
|
|
|
|
"//internal/api/versionsapi",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|