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(
|
2023-05-23 03:17:27 -04:00
|
|
|
name = "imagefetcher",
|
2023-03-09 09:23:42 -05:00
|
|
|
srcs = [
|
2023-05-23 06:12:58 -04:00
|
|
|
"imagefetcher.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"raw.go",
|
|
|
|
],
|
2023-05-23 03:17:27 -04:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/imagefetcher",
|
2023-05-26 06:05:02 -04:00
|
|
|
visibility = ["//:__subpackages__"],
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
2023-05-25 12:43:44 -04:00
|
|
|
"//internal/api/fetcher",
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/versionsapi",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
2023-12-08 08:40:31 -05:00
|
|
|
"//internal/mpimage",
|
|
|
|
"//internal/semver",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_schollz_progressbar_v3//:progressbar",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
2023-05-23 03:17:27 -04:00
|
|
|
name = "imagefetcher_test",
|
2023-03-09 09:23:42 -05:00
|
|
|
srcs = [
|
2023-05-23 03:17:27 -04:00
|
|
|
"imagefetcher_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"raw_test.go",
|
|
|
|
],
|
2023-05-23 03:17:27 -04:00
|
|
|
embed = [":imagefetcher"],
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
2023-06-07 10:16:32 -04:00
|
|
|
"//internal/api/versionsapi",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/file",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|