Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrToDiagnostic ¶
func ErrToDiagnostic(summary string, err error) *tfprotov6.Diagnostic
ErrToDiagnostic creates a new Diagnostic for the provided error. If the error is of type tftypes.AttributePathError the attribute path is added to the diagnostic.
func ErrToDiagnosticWarn ¶
func ErrToDiagnosticWarn(summary string, err error) *tfprotov6.Diagnostic
ErrToDiagnostic creates a new Diagnostic for the provided error. If the error is of type tftypes.AttributePathError the attribute path is added to the diagnostic.
func GetErrorDiagnostic ¶
func GetErrorDiagnostic(diags []*tfprotov6.Diagnostic) *tfprotov6.Diagnostic
GetErrorDiagnostic Gets the first Diagnostic from the provided Diagnostics that is of severity Error.
func HasErrors ¶
func HasErrors(diags []*tfprotov6.Diagnostic) bool
HasErrors checks if any of the provided Diagnostics is of severity Error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.