constellation/disk-mapper/internal/setup/BUILD.bazel
2023-06-09 10:35:52 +02:00

46 lines
1.2 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "setup",
srcs = [
"interface.go",
"mount_cross.go",
"mount_linux.go",
"setup.go",
],
importpath = "github.com/edgelesssys/constellation/v2/disk-mapper/internal/setup",
visibility = ["//disk-mapper:__subpackages__"],
deps = [
"//disk-mapper/internal/systemd",
"//internal/attestation",
"//internal/attestation/initialize",
"//internal/attestation/vtpm",
"//internal/cloud/metadata",
"//internal/constants",
"//internal/crypto",
"//internal/file",
"//internal/logger",
"//internal/nodestate",
"@com_github_spf13_afero//:afero",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "setup_test",
srcs = ["setup_test.go"],
embed = [":setup"],
deps = [
"//internal/attestation/vtpm",
"//internal/crypto",
"//internal/file",
"//internal/logger",
"//internal/nodestate",
"@com_github_spf13_afero//:afero",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)