2023-05-25 17:43:44 +01:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
2023-08-23 16:39:49 +02:00
|
|
|
load("//bazel/sh:def.bzl", "sh_template")
|
2023-05-25 17:43:44 +01:00
|
|
|
|
2023-08-31 10:46:50 +02:00
|
|
|
go_binary(
|
|
|
|
name = "cli",
|
|
|
|
embed = [":cli_lib"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2023-05-25 17:43:44 +01:00
|
|
|
go_library(
|
2023-08-31 10:46:50 +02:00
|
|
|
name = "cli_lib",
|
2023-08-10 09:45:46 +02:00
|
|
|
srcs = [
|
2024-07-10 12:59:02 +02:00
|
|
|
"compare.go",
|
2023-08-10 09:45:46 +02:00
|
|
|
"delete.go",
|
2023-08-10 09:46:34 +02:00
|
|
|
"main.go",
|
2023-11-14 13:24:25 +01:00
|
|
|
"upload.go",
|
2023-11-09 09:59:19 +01:00
|
|
|
"validargs.go",
|
2023-08-10 09:45:46 +02:00
|
|
|
],
|
2023-08-31 10:46:50 +02:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/api/attestationconfigapi/cli",
|
2023-05-25 17:43:44 +01:00
|
|
|
visibility = ["//visibility:private"],
|
2023-08-10 09:45:46 +02:00
|
|
|
deps = [
|
|
|
|
"//internal/api/attestationconfigapi",
|
2024-06-11 14:50:38 +02:00
|
|
|
"//internal/api/attestationconfigapi/cli/client",
|
2024-06-12 10:24:16 +02:00
|
|
|
"//internal/api/fetcher",
|
2023-11-14 10:03:01 +01:00
|
|
|
"//internal/attestation/variant",
|
2023-08-23 16:39:49 +02:00
|
|
|
"//internal/constants",
|
2023-10-17 17:36:50 +02:00
|
|
|
"//internal/file",
|
2023-08-10 09:45:46 +02:00
|
|
|
"//internal/logger",
|
|
|
|
"//internal/staticupload",
|
2023-10-17 17:36:50 +02:00
|
|
|
"//internal/verify",
|
2024-04-16 18:13:47 +02:00
|
|
|
"@com_github_aws_aws_sdk_go_v2//aws",
|
2023-09-25 11:53:02 +02:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_s3//types",
|
2024-06-12 16:30:03 +02:00
|
|
|
"@com_github_google_go_tdx_guest//proto/tdx",
|
2023-10-17 17:36:50 +02:00
|
|
|
"@com_github_spf13_afero//:afero",
|
2023-08-10 09:45:46 +02:00
|
|
|
"@com_github_spf13_cobra//:cobra",
|
|
|
|
],
|
2023-05-25 17:43:44 +01:00
|
|
|
)
|
|
|
|
|
2023-08-23 16:39:49 +02:00
|
|
|
sh_template(
|
2023-08-31 10:46:50 +02:00
|
|
|
name = "cli_e2e_test",
|
|
|
|
data = [":cli"],
|
2023-08-23 16:39:49 +02:00
|
|
|
substitutions = {
|
2023-08-31 10:46:50 +02:00
|
|
|
"@@CONFIGAPI_CLI@@": "$(rootpath :cli)",
|
2023-08-23 16:39:49 +02:00
|
|
|
},
|
|
|
|
template = "e2e/test.sh.in",
|
|
|
|
)
|