mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
44 lines
1.2 KiB
Python
44 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/nodestate",
|
|
"@com_github_spf13_afero//:afero",
|
|
],
|
|
)
|
|
|
|
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",
|
|
],
|
|
)
|