Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiagnosticString ¶
func DiagnosticString(d diag.Diagnostic) string
DiagnosticString formats a Diagnostic If there is no `Detail`, only prints summary, otherwise prints both
func DiagnosticsError ¶
func DiagnosticsError(diags diag.Diagnostics) error
DiagnosticsError returns an error containing all Diagnostic with SeverityError
func Must ¶
func Must[T any](x T, diags diag.Diagnostics) T
Must is a generic implementation of the Go Must idiom [1, 2]. It panics if the provided Diagnostics has errors and returns x otherwise.
func NewResourceNotFoundWarningDiagnostic ¶
func NewResourceNotFoundWarningDiagnostic(err error) diag.Diagnostic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.