Documentation ¶
Overview ¶
Package validatordiag provides diagnostics helpers for validator implementations.
Index ¶
- func BugInProviderDiagnostic(summary string) diag.Diagnostic
- func InvalidAttributeCombinationDiagnostic(path path.Path, description string) diag.Diagnostic
- func InvalidAttributeTypeDiagnostic(path path.Path, description string, value string) diag.Diagnostic
- func InvalidAttributeValueDiagnostic(path path.Path, description string, value string) diag.Diagnostic
- func InvalidAttributeValueLengthDiagnostic(path path.Path, description string, value string) diag.Diagnostic
- func InvalidAttributeValueMatchDiagnostic(path path.Path, description string, value string) diag.Diagnostic
- func InvalidBlockDiagnostic(path path.Path, description string) diag.Diagnostic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BugInProviderDiagnostic ¶ added in v0.4.0
func BugInProviderDiagnostic(summary string) diag.Diagnostic
func InvalidAttributeCombinationDiagnostic ¶ added in v0.4.0
func InvalidAttributeCombinationDiagnostic(path path.Path, description string) diag.Diagnostic
InvalidAttributeCombinationDiagnostic returns an error Diagnostic to be used when a schemavalidator of attributes is invalid.
func InvalidAttributeTypeDiagnostic ¶
func InvalidAttributeTypeDiagnostic(path path.Path, description string, value string) diag.Diagnostic
InvalidAttributeTypeDiagnostic returns an error Diagnostic to be used when an attribute has an invalid type.
func InvalidAttributeValueDiagnostic ¶
func InvalidAttributeValueDiagnostic(path path.Path, description string, value string) diag.Diagnostic
InvalidAttributeValueDiagnostic returns an error Diagnostic to be used when an attribute has an invalid value.
func InvalidAttributeValueLengthDiagnostic ¶
func InvalidAttributeValueLengthDiagnostic(path path.Path, description string, value string) diag.Diagnostic
InvalidAttributeValueLengthDiagnostic returns an error Diagnostic to be used when an attribute's value has an invalid length.
func InvalidAttributeValueMatchDiagnostic ¶
func InvalidAttributeValueMatchDiagnostic(path path.Path, description string, value string) diag.Diagnostic
InvalidAttributeValueMatchDiagnostic returns an error Diagnostic to be used when an attribute's value has an invalid match.
func InvalidBlockDiagnostic ¶ added in v0.10.0
func InvalidBlockDiagnostic(path path.Path, description string) diag.Diagnostic
InvalidBlockDiagnostic returns an error Diagnostic to be used when a block is invalid
Types ¶
This section is empty.