Versions in this module Expand all Collapse all v0 v0.0.1 Aug 28, 2024 Changes in this version + func DiagnosticCausedBySensitive(diag Diagnostic) bool + func DiagnosticCausedByUnknown(diag Diagnostic) bool + func DoNotConsolidateDiagnostic(diag Diagnostic) bool + func ExtraInfoNext[T any](previous interface{}) T + func ExtraInfo[T any](diag Diagnostic) T + func FormatCtyPath(path cty.Path) string + func FormatError(err error) string + func FormatErrorPrefixed(err error, prefix string) string + func GetAttribute(d Diagnostic) cty.Path + type Description struct + Address string + Detail string + Summary string + type Diagnostic interface + Description func() Description + ExtraInfo func() interface{} + FromExpr func() *FromExpr + Severity func() Severity + Source func() Source + func AttributeValue(severity Severity, summary, detail string, attrPath cty.Path) Diagnostic + func Override(original Diagnostic, severity Severity, ...) Diagnostic + func SimpleWarning(msg string) Diagnostic + func Sourceless(severity Severity, summary, detail string) Diagnostic + func UndoOverride(diag Diagnostic) Diagnostic + func WholeContainingBody(severity Severity, summary, detail string) Diagnostic + type DiagnosticExtraBecauseSensitive interface + DiagnosticCausedBySensitive func() bool + type DiagnosticExtraBecauseUnknown interface + DiagnosticCausedByUnknown func() bool + type DiagnosticExtraDoNotConsolidate interface + DoNotConsolidateDiagnostic func() bool + type DiagnosticExtraUnwrapper interface + UnwrapDiagnosticExtra func() interface{} + type DiagnosticExtraWrapper interface + WrapDiagnosticExtra func(inner interface{}) + type Diagnostics []Diagnostic + func OverrideAll(originals Diagnostics, severity Severity, ...) Diagnostics + func (diags Diagnostics) Append(new ...interface{}) Diagnostics + func (diags Diagnostics) ConsolidateWarnings(threshold int) Diagnostics + func (diags Diagnostics) Err() error + func (diags Diagnostics) ErrWithWarnings() error + func (diags Diagnostics) ForRPC() Diagnostics + func (diags Diagnostics) HasErrors() bool + func (diags Diagnostics) InConfigBody(body hcl.Body, addr string) Diagnostics + func (diags Diagnostics) NonFatalErr() error + func (diags Diagnostics) Sort() + func (diags Diagnostics) ToHCL() hcl.Diagnostics + func (diags Diagnostics) TrimDuplicated() + type FromExpr struct + EvalContext *hcl.EvalContext + Expression hcl.Expression + type NonFatalError struct + func (woe NonFatalError) Error() string + type Severity rune + const Error + const Warning + func (i Severity) String() string + func (s Severity) ToHCL() hcl.DiagnosticSeverity + type Source struct + Context *SourceRange + Subject *SourceRange + func WarningGroupSourceRanges(diag Diagnostic) []Source + type SourcePos struct + Byte int + Column int + Line int + type SourceRange struct + End SourcePos + Filename string + Start SourcePos + func SourceRangeFromHCL(hclRange hcl.Range) SourceRange + func (r SourceRange) StartString() string + func (r SourceRange) ToHCL() hcl.Range