validate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 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, publicClient bool) schema.SchemaValidateDiagFunc

func IsUriFunc

func IsUriFunc(validURLSchemes []string, urnAllowed bool, allowTrailingSlash 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