Documentation
¶
Overview ¶
Package validatordiag provides diagnostics helpers for validator implementations.
Index ¶
- func AttributeValueDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
- func AttributeValueLengthDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
- func AttributeValueMatchesDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeValueDiagnostic ¶
func AttributeValueDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
AttributeValueDiagnostic returns an error Diagnostic to be used when an attribute has an invalid value.
func AttributeValueLengthDiagnostic ¶
func AttributeValueLengthDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
AttributeValueLengthDiagnostic returns an error Diagnostic to be used when an attribute's value has an invalid length.
func AttributeValueMatchesDiagnostic ¶
func AttributeValueMatchesDiagnostic(path *tftypes.AttributePath, description string, value string) diag.Diagnostic
AttributeValueMatchesDiagnostic returns an error Diagnostic to be used when an attribute's value has an invalid match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.