opentofu/internal/cloud
Nick Fagerlund f98f920b67 Add error wrapper types to highlight bad plan/state data
This commit uses Go's error wrapping features to transparently add some optional
info to certain planfile/state read errors. Specifically, we wrap errors when we
think we've identified the file type but are somehow unable to use it.

Callers that aren't interested in what we think about our input can just ignore
the wrapping; callers that ARE interested can use `errors.As()`.
2023-07-24 14:12:44 -04:00
..
cloudplan Add error wrapper types to highlight bad plan/state data 2023-07-24 14:12:44 -04:00
e2e [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
testdata Modify tfe client mocks to meet some new requirements 2023-07-24 14:12:44 -04:00
backend_apply_test.go Apply a confirmable run when given a saved cloud plan (#33270) 2023-07-24 14:12:40 -04:00
backend_apply.go Apply a confirmable run when given a saved cloud plan (#33270) 2023-07-24 14:12:40 -04:00
backend_cli.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_colorize.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_common.go Cloud: Split private readRedactedPlan func into two 2023-07-24 14:12:44 -04:00
backend_context_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_context.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_plan_test.go Implement plan -out for Cloud 2023-07-24 14:12:44 -04:00
backend_plan.go Cloud: Split private readRedactedPlan func into two 2023-07-24 14:12:44 -04:00
backend_refresh_test.go testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
backend_run_warning_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_run_warning.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_show_test.go Tests: Add tests for (*Cloud).ShowPlanForRun() 2023-07-24 14:12:44 -04:00
backend_show.go Add (*Cloud).ShowPlanForRun method to support terraform show 2023-07-24 14:12:44 -04:00
backend_taskStage_policyEvaluation_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_taskStage_policyEvaluation.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_taskStage_taskResults_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_taskStage_taskResults.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_taskStages_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_taskStages.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
backend_test.go Modify tfe client mocks to meet some new requirements 2023-07-24 14:12:44 -04:00
backend.go Relocate localterraform.com aliasing to backend configurators 2023-07-21 09:55:41 -06:00
cloud_integration.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
cloud_variables_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
cloud_variables.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
configchangemode_string.go cloud: DetectConfigChangeType helper 2021-11-17 14:20:44 -08:00
errored.tfstate cloud: when saving state, create a pending state version then upload 2023-06-21 12:30:32 -06:00
errors.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
migration_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
migration.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
remote_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
state_test.go cloud: when saving state, create a pending state version then upload 2023-06-21 12:30:32 -06:00
state.go cloud: when saving state, create a pending state version then upload 2023-06-21 12:30:32 -06:00
testing.go Modify tfe client mocks to meet some new requirements 2023-07-24 14:12:44 -04:00
tfe_client_mock.go Modify tfe client mocks to meet some new requirements 2023-07-24 14:12:44 -04:00