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