terraform/internal/cloud
Chris Arcand d2b6b5f2b3 cloud: Align local and remote workspace name with 'name' strategy
This changes the 'name' strategy to always align the local configured
workspace name and the remote Terraform Cloud workspace, rather than the
implicit use of the 'default' unnamed workspace being used instead.

What this essentially means is that the Cloud integration does not fully
support workspaces when configured for a single TFC workspace (as was
the case with the 'remote' backend), but *does* use the
backend.Workspaces() interface to allow for normal local behaviors like
terraform.workspace to resolve to the correct name. It does this by
always setting the local workspace name when the 'name' strategy is
used, as a part of initialization.

Part of the diff here is exporting all the previously unexported types
for mapping workspaces. The command package (and init in particular)
needs to be able to handle setting the local workspace in this
particular scenario.
2021-10-28 19:29:11 -05:00
..
testdata cloud: Don't ignore .log golden files 2021-10-28 19:29:10 -05:00
backend.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_apply.go Use context parallelism 2021-10-28 19:29:10 -05:00
backend_apply_test.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_cli.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_colorize.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_common.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_context.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_context_test.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_plan.go Use context parallelism 2021-10-28 19:29:10 -05:00
backend_plan_test.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_state.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_state_test.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
backend_test.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
errors.go Map CLI workspaces by TFC tags 2021-10-28 19:29:10 -05:00
remote_test.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
testing.go cloud: Align local and remote workspace name with 'name' strategy 2021-10-28 19:29:11 -05:00
tfe_client_mock.go cloud: TestCloud_backendWithTags 2021-10-28 19:29:10 -05:00