terraform/tfdiags
Martin Atkins 780e758f1e tfdiags: Allow construction of RPC-friendly Diagnostics
Due to the use of interfaces, Diagnostics is not super-friendly to the gob
encoding we currently use for plugin RPC. To mitigate this, we provide
a helper that converts all of the wrapped objects into a predictable flat
structure that we can pre-emptively register with gob.

This means that the decoded Diagnostics still has the same meaning as
the original, though the original wrapped errors (if any) are lost and
thus our errwrap integration won't be effective any longer.
2017-10-06 11:46:07 -07:00
..
diagnostic.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
diagnostics.go tfdiags: Allow construction of RPC-friendly Diagnostics 2017-10-06 11:46:07 -07:00
diagnostics_test.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
doc.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
error.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
hcl.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
rpc_friendly.go tfdiags: Allow construction of RPC-friendly Diagnostics 2017-10-06 11:46:07 -07:00
rpc_friendly_test.go tfdiags: Allow construction of RPC-friendly Diagnostics 2017-10-06 11:46:07 -07:00
severity_string.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
simple_warning.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
source_range.go tfdiags: SourceRange.StartString 2017-10-06 11:46:07 -07:00