mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 09:24:24 -05:00
4284f892ce
* rename to attestationconfigapi + put client and fetcher inside pkg * rename api/version to versionsapi and put fetcher + client inside pkg * rename AttestationConfigAPIFetcher to Fetcher
47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "versionsapi",
|
|
srcs = [
|
|
"apiconstants.go",
|
|
"client.go",
|
|
"cliinfo.go",
|
|
"fetcher.go",
|
|
"imageinfo.go",
|
|
"latest.go",
|
|
"list.go",
|
|
"version.go",
|
|
"versionsapi.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/api/versionsapi",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/api/client",
|
|
"//internal/api/fetcher",
|
|
"//internal/constants",
|
|
"//internal/logger",
|
|
"@org_golang_x_mod//semver",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "versionsapi_test",
|
|
srcs = [
|
|
"cliinfo_test.go",
|
|
"fetcher_test.go",
|
|
"imageinfo_test.go",
|
|
"latest_test.go",
|
|
"list_test.go",
|
|
"version_test.go",
|
|
],
|
|
embed = [":versionsapi"],
|
|
deps = [
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/constants",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|