2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-08-18 08:25:14 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 09:23:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "server",
|
|
|
|
srcs = ["server.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/hack/qemu-metadata-api/server",
|
2023-06-09 04:35:52 -04:00
|
|
|
target_compatible_with = [
|
|
|
|
"@platforms//os:linux",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//hack/qemu-metadata-api/virtwrapper",
|
|
|
|
"//internal/cloud/metadata",
|
|
|
|
"//internal/role",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "server_test",
|
2023-08-18 08:25:14 -04:00
|
|
|
srcs = [
|
|
|
|
"server_cgo_test.go",
|
|
|
|
"server_cross_test.go",
|
|
|
|
"server_test.go",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
embed = [":server"],
|
|
|
|
# keep
|
2023-08-18 08:25:14 -04:00
|
|
|
pure = "on",
|
|
|
|
# keep
|
|
|
|
race = "off",
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
|
|
|
"//hack/qemu-metadata-api/virtwrapper",
|
|
|
|
"//internal/cloud/metadata",
|
|
|
|
"//internal/logger",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_libvirt_go_libvirt//:libvirt",
|
|
|
|
],
|
|
|
|
)
|