Versions in this module Expand all Collapse all v1 v1.1.3 Dec 29, 2021 Changes in this version + 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 + FromExpr func() *FromExpr + Severity func() Severity + Source func() Source + func AttributeValue(severity Severity, summary, detail string, attrPath cty.Path) Diagnostic + func SimpleWarning(msg string) Diagnostic + func Sourceless(severity Severity, summary, detail string) Diagnostic + func WholeContainingBody(severity Severity, summary, detail string) Diagnostic + type Diagnostics []Diagnostic + 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 + 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 + 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