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 = "versionsapi",
|
|
|
|
srcs = [
|
|
|
|
"cliinfo.go",
|
|
|
|
"imageinfo.go",
|
|
|
|
"latest.go",
|
|
|
|
"list.go",
|
|
|
|
"version.go",
|
|
|
|
"versionsapi.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/versionsapi",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/constants",
|
|
|
|
"@org_golang_x_mod//semver",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "versionsapi_test",
|
|
|
|
srcs = [
|
|
|
|
"cliinfo_test.go",
|
|
|
|
"imageinfo_test.go",
|
|
|
|
"latest_test.go",
|
|
|
|
"list_test.go",
|
|
|
|
"version_test.go",
|
|
|
|
],
|
|
|
|
embed = [":versionsapi"],
|
|
|
|
deps = [
|
2023-02-03 05:05:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/constants",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
],
|
|
|
|
)
|