MCPcopy
hub / github.com/opentofu/opentofu / JSONView

Struct JSONView

internal/command/views/json_view.go:52–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52type JSONView struct {
53 // hclog is used for all output in JSON UI mode. The logger has an internal
54 // mutex to ensure that messages are not interleaved.
55 log hclog.Logger
56
57 // We hold a reference to the view entirely to allow us to access the
58 // ConfigSources function pointer, in order to render source snippets into
59 // diagnostics. This is even more unfortunate than the same reference in the
60 // view.
61 //
62 // Do not be tempted to dereference the configSource value upon logger init,
63 // as it will likely be updated later.
64 view *View
65}
66
67func (v *JSONView) Version() {
68 version := tfversion.String()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected