# Functions
AsCheckBlockDiagnostic will wrap a Diagnostic or a hcl.Diagnostic in a CheckBlockDiagnostic.
AsCheckBlockDiagnostics will wrap every diagnostic in diags in a CheckBlockDiagnostic.
AttributeValue returns a diagnostic about an attribute value in an implied current configuration context.
DiagnosticCausedBySensitive returns true if the given diagnostic has an indication that it was caused by the presence of sensitive values during an expression evaluation.
DiagnosticCausedByUnknown returns true if the given diagnostic has an indication that it was caused by the presence of unknown values during an expression evaluation.
ExtraInfo tries to retrieve extra information of interface type T from the given diagnostic.
ExtraInfoNext takes a value previously returned by ExtraInfo and attempts to find an implementation of interface T wrapped inside of it.
FormatCtyPath is a helper function to produce a user-friendly string representation of a cty.Path.
FormatError is a helper function to produce a user-friendly string representation of certain special error types that we might want to include in diagnostic messages.
FormatErrorPrefixed is like FormatError except that it presents any path information after the given prefix string, which is assumed to contain an HCL syntax representation of the value that errors are relative to.
GetAttribute extracts an attribute cty.Path from a diagnostic if it contains one.
IsFromCheckBlock returns true if the specified Diagnostic is a CheckBlockDiagnostic.
SimpleWarning constructs a simple (summary-only) warning diagnostic.
Sourceless creates and returns a diagnostic with no source location information.
SourceRangeFromHCL constructs a SourceRange from the corresponding range type within the HCL package.
WarningGroupSourceRanges can be used in conjunction with Diagnostics.ConsolidateWarnings to recover the full set of original source locations from a consolidated warning.
WholeContainingBody returns a diagnostic about the body that is an implied current configuration context.
# Structs
CheckBlockDiagnostic is a diagnostic produced by a Terraform config Check block.
No description provided by the author
No description provided by the author
NonFatalError is a special error type, returned by Diagnostics.ErrWithWarnings and Diagnostics.NonFatalErr, that indicates that the wrapped diagnostics should be treated as non-fatal.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
DiagnosticExtraBecauseSensitive is an interface implemented by values in the Extra field of Diagnostic when the diagnostic is potentially caused by the presence of sensitive values in an expression evaluation.
DiagnosticExtraBecauseUnknown is an interface implemented by values in the Extra field of Diagnostic when the diagnostic is potentially caused by the presence of unknown values in an expression evaluation.
DiagnosticExtraUnwrapper is an interface implemented by values in the Extra field of Diagnostic when they are wrapping another "Extra" value that was generated downstream.