opentofu/internal/backend
Martin Atkins 3d5039f1f3 tofu: Context.Plan now takes a context.Context
This continues our ongoing effort to get a coherent chain of
context.Context all the way from "package main" to all of our calls to
external components.

Context.Plan does not yet do anything with its new context, but this gets
the context plumbed in enough that we should be able to pass values like
telemetry spans all the way from the top-level in future.

OpenTofu has some historical situational private uses of context.Context
to handle the graceful shutdown behaviors. Those use context.Context as
a private implementation detail rather than public API, and so this commit
leaves them as-is and adds a new "primary context" alongside. Hopefully
in future refactoring we can simplify this to use the primary context also
as the primary cancellation signal, but that's too risky a change to bundle
in with this otherwise-mostly-harmless context plumbing.

All of the _test.go file updates here are purely mechanical additions of
the extra argument. No test is materially modified by this change, which
is intentional to get some assurance that isn't a breaking change.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-11-19 10:15:21 -08:00
..
init Fix regression of backend reinit detection when backend schema has required arguments (#2119) 2024-11-04 14:23:32 -05:00
local tofu: Context.Plan now takes a context.Context 2024-11-19 10:15:21 -08:00
remote Add exclude flag support (#1900) 2024-11-05 10:16:00 -05:00
remote-state "http" backend to return existing lock metadata on lock conflict, rather than new lock metadata (#2090) 2024-11-19 14:57:19 +02:00
backend_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
backend.go Add exclude flag support (#1900) 2024-11-05 10:16:00 -05:00
cli.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
operation_type.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
operationtype_string.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
testing.go Implement Provider for_each (#2105) 2024-11-05 18:08:23 -05:00
unparsed_value_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
unparsed_value.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00