diag

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewIncorrectValueTypeAttributeError

func NewIncorrectValueTypeAttributeError(path path.Path, v attr.Value) diag.Diagnostic

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.

Jump to

Keyboard shortcuts

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