fwdiag

package
v0.75.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsError

func AsError[T any](x T, diags diag.Diagnostics) (T, error)

func DiagAsError

func DiagAsError(diags diag.Diagnostics) error

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 ErrMust

func ErrMust[T any](x T, err error) T

func Must

func Must[T any](x T, diags diag.Diagnostics) T

Must - ensures a hard fail if diags contains errors from the supplied function x. This should protect developers from shipping panics from incompatible type conversions /

func NewResourceNotFoundWarningDiagnostic

func NewResourceNotFoundWarningDiagnostic(err error) diag.Diagnostic

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL