Documentation ¶
Overview ¶
Package diag contains diagnostics helpers. These implementations are intentionally outside the public API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostics ¶
type Diagnostics []*tfprotov6.Diagnostic
Diagnostics is a collection of Diagnostic.
func (Diagnostics) ErrorCount ¶
func (d Diagnostics) ErrorCount() int
ErrorCount returns the number of error severity diagnostics.
func (Diagnostics) Log ¶
func (d Diagnostics) Log(ctx context.Context)
Log will log every diagnostic:
- Error severity at ERROR level
- Warning severity at WARN level
- Invalid/Unknown severity at WARN level
func (Diagnostics) WarningCount ¶
func (d Diagnostics) WarningCount() int
WarningCount returns the number of warning severity diagnostics.
Click to show internal directories.
Click to hide internal directories.