2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-07-04 10:26:37 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 09:23:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "nodelock",
|
|
|
|
srcs = ["nodelock.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/nodelock",
|
|
|
|
visibility = ["//bootstrapper:__subpackages__"],
|
2023-03-08 08:13:57 -05:00
|
|
|
deps = [
|
|
|
|
"//internal/attestation/initialize",
|
|
|
|
"//internal/attestation/vtpm",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|
2023-07-04 10:26:37 -04:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "nodelock_test",
|
|
|
|
srcs = ["nodelock_test.go"],
|
|
|
|
embed = [":nodelock"],
|
|
|
|
deps = [
|
|
|
|
"//internal/attestation/vtpm",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
],
|
|
|
|
)
|