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
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/cloudcmd",
|
|
|
|
visibility = ["//cli:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//cli/internal/libvirt",
|
|
|
|
"//cli/internal/terraform",
|
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-12-11 09:55:44 -05:00
|
|
|
"//internal/constellation",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
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-12-08 08:40:31 -05:00
|
|
|
"//internal/mpimage",
|
2023-06-22 10:53:40 -04:00
|
|
|
"//internal/role",
|
2023-03-09 09:23:42 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
],
|
|
|
|
embed = [":cloudcmd"],
|
|
|
|
deps = [
|
|
|
|
"//cli/internal/terraform",
|
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",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
2023-08-23 04:35:42 -04:00
|
|
|
"//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",
|
|
|
|
],
|
|
|
|
)
|