mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 17:04:22 -05:00
ac1128d07f
* Add common backend for interacting with cryptsetup * Use common cryptsetup backend in bootstrapper * Use common cryptsetup backend in disk-mapper * Use common cryptsetup backend in csi lib --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_ld_test", "go_test")
|
|
|
|
go_library(
|
|
name = "diskencryption",
|
|
srcs = ["diskencryption.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/diskencryption",
|
|
target_compatible_with = [
|
|
"@platforms//os:linux",
|
|
],
|
|
visibility = ["//bootstrapper:__subpackages__"],
|
|
deps = [
|
|
"//internal/cryptsetup",
|
|
"@com_github_spf13_afero//:afero",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "diskencryption_test",
|
|
srcs = ["diskencryption_test.go"],
|
|
embed = [":diskencryption"],
|
|
# keep
|
|
tags = ["manual"],
|
|
deps = select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_ld_test(
|
|
name = "diskencryption_ld_test",
|
|
src = "diskencryption_test",
|
|
ld = "//rpm:ld",
|
|
)
|