2023-06-01 07:55:46 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-06-02 06:10:22 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-06-01 07:55:46 -04:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cmd",
|
|
|
|
srcs = ["root.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/hack/configapi/cmd",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2023-06-02 03:19:23 -04:00
|
|
|
"//internal/api/attestationconfig",
|
|
|
|
"//internal/api/attestationconfig/client",
|
2023-06-02 06:10:22 -04:00
|
|
|
"//internal/api/attestationconfig/fetcher",
|
2023-06-01 07:55:46 -04:00
|
|
|
"//internal/staticupload",
|
|
|
|
"@com_github_spf13_cobra//:cobra",
|
|
|
|
],
|
|
|
|
)
|
2023-06-02 06:10:22 -04:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cmd_test",
|
|
|
|
srcs = ["root_test.go"],
|
|
|
|
embed = [":cmd"],
|
|
|
|
deps = [
|
|
|
|
"//internal/api/attestationconfig",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
],
|
|
|
|
)
|