validate

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISO639Language

func ISO639Language(i interface{}, path cty.Path) (ret diag.Diagnostics)

func IsAppUri

func IsAppUri(i interface{}, path cty.Path) diag.Diagnostics

func IsHttpOrHttpsUrl

func IsHttpOrHttpsUrl(i interface{}, path cty.Path) diag.Diagnostics

func IsHttpsUrl

func IsHttpsUrl(i interface{}, path cty.Path) diag.Diagnostics

func IsLogoutUrl

func IsLogoutUrl(i interface{}, path cty.Path) (ret diag.Diagnostics)

func IsRedirectUriFunc

func IsRedirectUriFunc(urnAllowed bool) schema.SchemaValidateDiagFunc

func IsUriFunc

func IsUriFunc(validURLSchemes []string, urnAllowed bool, forceTrailingSlash bool) schema.SchemaValidateDiagFunc

func MailNickname

func MailNickname(i interface{}, path cty.Path) (ret diag.Diagnostics)

func NoEmptyStrings

func NoEmptyStrings(i interface{}, path cty.Path) (ret diag.Diagnostics)

NoEmptyStrings validates that the string is not just whitespace characters (equal to [\r\n\t\f\v ])

func StringIsEmailAddress

func StringIsEmailAddress(i interface{}, path cty.Path) (ret diag.Diagnostics)

StringIsEmailAddress validates that the given string is a valid email address (foo@bar.com)

func UUID

func UUID(i interface{}, path cty.Path) (ret diag.Diagnostics)

func ValidateDiag

func ValidateDiag(validateFunc func(interface{}, string) ([]string, []error)) schema.SchemaValidateDiagFunc

ValidateDiag wraps a SchemaValidateFunc to build a Diagnostics from the warning and error slices

Types

This section is empty.

Jump to

Keyboard shortcuts

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