Versions in this module Expand all Collapse all v0 v0.1.6 Jun 19, 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 + 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 (d Diagnostics) InConfigBody(body hcl.Body) Diagnostics + func (diags Diagnostics) Append(new ...interface{}) Diagnostics + func (diags Diagnostics) Err() error + func (diags Diagnostics) ErrWithWarnings() error + func (diags Diagnostics) ForRPC() Diagnostics + func (diags Diagnostics) HasErrors() bool + func (diags Diagnostics) NonFatalErr() error + 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 + 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