validatordiag

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MPL-2.0 Imports: 5 Imported by: 10

Documentation

Overview

Package validatordiag provides diagnostics helpers for validator implementations.

Index

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.

Jump to

Keyboard shortcuts

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