diags

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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