validatordiag

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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