Documentation ¶
Index ¶
- Variables
- func FindByExtra[T any](diags Diag) *hcl.Diagnostic
- func PrintDiags(output *os.File, diags Diag, fileMap map[string]*hcl.File, colorize bool)
- type Diag
- func (d *Diag) Add(summary, detail string)
- func (d *Diag) Append(diag *hcl.Diagnostic) (addedErrors bool)
- func (d *Diag) AppendErr(err error, summary string) (haveAddedErrors bool)
- func (d Diag) Error() string
- func (d *Diag) Extend(diags Diag) (haveAddedErrors bool)
- func (d *Diag) ExtendHcl(diags hcl.Diagnostics) (haveAddedErrors bool)
- func (d *Diag) HasErrors() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var RepeatedError = &hcl.Diagnostic{
Severity: hcl.DiagError,
Extra: repeatedError{},
}
Invisible to user error, typically used to signal that the initial block evaluation has failed (and already has reported its errors to user).
Functions ¶
func FindByExtra ¶
Types ¶
type Diag ¶
type Diag hcl.Diagnostics // Diagnostics does implement error interface, but not, itself, an error.
func FromErrSubj ¶
func (*Diag) Append ¶
Appends diag to diagnostics, returns true if the just-appended diagnostic is an error.
func (*Diag) Extend ¶
Appends all diags to diagnostics, returns true if the just-appended diagnostics contain an error.
Click to show internal directories.
Click to hide internal directories.