opentofu/internal/states
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
..
remote cloud: Skip intermediate state snapshots in Terraform Cloud/Enterprise 2023-05-23 15:25:48 -07:00
statefile Add error wrapper types to highlight bad plan/state data 2023-07-24 14:12:44 -04:00
statemgr [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
checks.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
doc.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
instance_generation.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
instance_object_src.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
instance_object_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
instance_object.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
module.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
objectstatus_string.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
output_value.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
resource_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
resource.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
state_deepcopy.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
state_equal.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
state_string.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
state_test.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
state.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
sync.go [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00