Help us shape the future of Go! Take the 2026 Go Developer Survey

validatordiag

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package validatordiag provides diagnostics helpers for validator implementations.

Index

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.

Jump to

Keyboard shortcuts

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