Documentation ¶
Index ¶
- func DiagnosticString(d diag.Diagnostic) string
- func DiagnosticsError(diags diag.Diagnostics) error
- func Must[T any](x T, diags diag.Diagnostics) T
- func NewIncorrectValueTypeAttributeError(path path.Path, v attr.Value) diag.Diagnostic
- func NewIncorrectValueTypeResourceConfigError(t tftypes.Type) diag.Diagnostic
- func NewInvalidFormatAttributeError(path path.Path, detail string) diag.Diagnostic
- func NewInvalidLengthAtLeastAttributeError(path path.Path, min, len int) diag.Diagnostic
- func NewInvalidLengthAtMostAttributeError(path path.Path, max, len int) diag.Diagnostic
- func NewInvalidLengthBetweenAttributeError(path path.Path, min, max, len int) diag.Diagnostic
- func NewInvalidValueAttributeError(path path.Path, detail string) diag.Diagnostic
- func NewUnableToConvertValueTypeAttributeError(path path.Path, err error) diag.Diagnostic
- func NewUnableToConvertValueTypeResourceConfigError(err error) diag.Diagnostic
- func NewUnableToObtainValueAttributeError(path path.Path, err error) diag.Diagnostic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiagnosticString ¶
func DiagnosticString(d diag.Diagnostic) string
func DiagnosticsError ¶
func DiagnosticsError(diags diag.Diagnostics) error
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 NewIncorrectValueTypeResourceConfigError ¶
func NewIncorrectValueTypeResourceConfigError(t tftypes.Type) diag.Diagnostic
func NewInvalidFormatAttributeError ¶
func NewInvalidFormatAttributeError(path path.Path, detail string) diag.Diagnostic
func NewInvalidLengthAtLeastAttributeError ¶
func NewInvalidLengthAtLeastAttributeError(path path.Path, min, len int) diag.Diagnostic
func NewInvalidLengthAtMostAttributeError ¶
func NewInvalidLengthAtMostAttributeError(path path.Path, max, len int) diag.Diagnostic
func NewInvalidLengthBetweenAttributeError ¶
func NewInvalidLengthBetweenAttributeError(path path.Path, min, max, len int) diag.Diagnostic
func NewInvalidValueAttributeError ¶
func NewInvalidValueAttributeError(path path.Path, detail string) diag.Diagnostic
func NewUnableToConvertValueTypeAttributeError ¶
func NewUnableToConvertValueTypeAttributeError(path path.Path, err error) diag.Diagnostic
func NewUnableToConvertValueTypeResourceConfigError ¶
func NewUnableToConvertValueTypeResourceConfigError(err error) diag.Diagnostic
func NewUnableToObtainValueAttributeError ¶
func NewUnableToObtainValueAttributeError(path path.Path, err error) diag.Diagnostic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.