2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cloudcmd",
|
|
|
|
srcs = [
|
2023-10-31 07:46:40 -04:00
|
|
|
"apply.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"clients.go",
|
|
|
|
"cloudcmd.go",
|
|
|
|
"iam.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"iamupgrade.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"rollback.go",
|
2023-08-11 09:18:59 -04:00
|
|
|
"serviceaccount.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"terminate.go",
|
2023-10-31 07:46:40 -04:00
|
|
|
"tfplan.go",
|
2023-08-23 04:35:42 -04:00
|
|
|
"tfvars.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"validators.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/cloudcmd",
|
|
|
|
visibility = ["//cli:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//cli/internal/libvirt",
|
2023-09-25 10:19:43 -04:00
|
|
|
"//cli/internal/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/terraform",
|
|
|
|
"//internal/atls",
|
2023-03-14 06:46:27 -04:00
|
|
|
"//internal/attestation/choose",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/cloud/azureshared",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/cloud/openstack",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/config",
|
2023-08-23 04:35:42 -04:00
|
|
|
"//internal/constants",
|
2023-08-11 09:18:59 -04:00
|
|
|
"//internal/file",
|
2023-05-23 03:17:27 -04:00
|
|
|
"//internal/imagefetcher",
|
2023-10-27 03:37:26 -04:00
|
|
|
"//internal/maa",
|
2023-06-22 10:53:40 -04:00
|
|
|
"//internal/role",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_spf13_cobra//:cobra",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cloudcmd_test",
|
|
|
|
srcs = [
|
2023-10-31 07:46:40 -04:00
|
|
|
"apply_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"clients_test.go",
|
|
|
|
"iam_test.go",
|
|
|
|
"rollback_test.go",
|
|
|
|
"terminate_test.go",
|
2023-10-31 07:46:40 -04:00
|
|
|
"tfplan_test.go",
|
|
|
|
"tfvars_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"validators_test.go",
|
|
|
|
],
|
|
|
|
embed = [":cloudcmd"],
|
|
|
|
deps = [
|
2023-09-25 10:19:43 -04:00
|
|
|
"//cli/internal/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//cli/internal/terraform",
|
|
|
|
"//internal/attestation/measurements",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/cloud/gcpshared",
|
|
|
|
"//internal/config",
|
2023-08-23 04:35:42 -04:00
|
|
|
"//internal/constants",
|
|
|
|
"//internal/file",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|