A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/helper/validation below:

validation package - github.com/hashicorp/terraform-plugin-sdk/helper/validation - Go Packages

This section is empty.

This section is empty.

All returns a SchemaValidateFunc which tests if the provided value passes all provided SchemaValidateFunc

Any returns a SchemaValidateFunc which tests if the provided value passes any of the provided SchemaValidateFunc

CIDRNetwork returns a SchemaValidateFunc which tests if the provided value is of type string, is in valid Value network notation, and has significant bits between min and max (inclusive)

Deprecated: use IsCIDRNetwork instead

FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float and is at least min (inclusive)

FloatAtMost returns a SchemaValidateFunc which tests if the provided value is of type float and is at most max (inclusive)

FloatBetween returns a SchemaValidateFunc which tests if the provided value is of type float64 and is between min and max (inclusive).

IPRange returns a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range

Deprecated: use IsIPv4Range instead

IntAtLeast returns a SchemaValidateFunc which tests if the provided value is of type int and is at least min (inclusive)

IntAtMost returns a SchemaValidateFunc which tests if the provided value is of type int and is at most max (inclusive)

IntBetween returns a SchemaValidateFunc which tests if the provided value is of type int and is between min and max (inclusive)

IntDivisibleBy returns a SchemaValidateFunc which tests if the provided value is of type int and is divisible by a given number

IntInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice

IntNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type int and matches the value of an element in the valid slice

IsCIDR is a SchemaValidateFunc which tests if the provided value is of type string and a valid CIDR

IsCIDRNetwork returns a SchemaValidateFunc which tests if the provided value is of type string, is in valid Value network notation, and has significant bits between min and max (inclusive)

IsDayOfTheWeek id a SchemaValidateFunc which tests if the provided value is of type string and a valid english day of the week

IsIPAddress is a SchemaValidateFunc which tests if the provided value is of type string and is a single IP (v4 or v6)

IsIPv4Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv4 address

IsIPv4Range is a SchemaValidateFunc which tests if the provided value is of type string, and in valid IP range

IsIPv6Address is a SchemaValidateFunc which tests if the provided value is of type string and a valid IPv6 address

IsMACAddress is a SchemaValidateFunc which tests if the provided value is of type string and a valid MAC address

IsMonth id a SchemaValidateFunc which tests if the provided value is of type string and a valid english month

IsPortNumber is a SchemaValidateFunc which tests if the provided value is of type string and a valid TCP Port Number

IsPortNumberOrZero is a SchemaValidateFunc which tests if the provided value is of type string and a valid TCP Port Number or zero

IsRFC3339Time is a SchemaValidateFunc which tests if the provided value is of type string and a valid RFC33349Time

IsURLWithHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTPS URL

IsURLWithHTTPorHTTPS is a SchemaValidateFunc which tests if the provided value is of type string and a valid HTTP or HTTPS URL

IsURLWithScheme is a SchemaValidateFunc which tests if the provided value is of type string and a valid URL with the provided schemas

IsUUID is a ValidateFunc that ensures a string can be parsed as UUID

func ListOfUniqueStrings(i interface{}, k string) (warnings []string, errors []error)

ListOfUniqueStrings is a ValidateFunc that ensures a list has no duplicate items in it. It's useful for when a list is needed over a set because order matters, yet the items still need to be unique.

NoZeroValues is a SchemaValidateFunc which tests if the provided value is not a zero value. It's useful in situations where you want to catch explicit zero values on things like required fields during validation.

SingleIP returns a SchemaValidateFunc which tests if the provided value is of type string, and in valid single Value notation

Deprecated: use IsIPAddress instead

StringDoesNotContainAny returns a SchemaValidateFunc which validates that the provided value does not contain any of the specified Unicode code points in chars.

StringDoesNotMatch returns a SchemaValidateFunc which tests if the provided value does not match a given regexp. Optionally an error message can be provided to return something friendlier than "must not match some globby regexp".

StringInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and matches the value of an element in the valid slice will test with in lower case if ignoreCase is true

StringIsBase64 is a ValidateFunc that ensures a string can be parsed as Base64

StringIsEmpty is a ValidateFunc that ensures a string has no characters

StringIsJSON is a SchemaValidateFunc which tests to make sure the supplied string is valid JSON.

StringIsNotEmpty is a ValidateFunc that ensures a string is not empty

StringIsNotWhiteSpace is a ValidateFunc that ensures a string is not empty or consisting entirely of whitespace characters

func StringIsValidRegExp(i interface{}, k string) (warnings []string, errors []error)

StringIsValidRegExp returns a SchemaValidateFunc which tests to make sure the supplied string is a valid regular expression.

StringIsWhiteSpace is a ValidateFunc that ensures a string is composed of entirely whitespace

StringLenBetween returns a SchemaValidateFunc which tests if the provided value is of type string and has length between min and max (inclusive)

StringMatch returns a SchemaValidateFunc which tests if the provided value matches a given regexp. Optionally an error message can be provided to return something friendlier than "must match some globby regexp".

StringNotInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and does not match the value of any element in the invalid slice will test with in lower case if ignoreCase is true

ValidateJsonString is a SchemaValidateFunc which tests to make sure the supplied string is valid JSON.

Deprecated: use StringIsJSON instead

func ValidateListUniqueStrings(i interface{}, k string) (warnings []string, errors []error)

ValidateListUniqueStrings is a ValidateFunc that ensures a list has no duplicate items in it. It's useful for when a list is needed over a set because order matters, yet the items still need to be unique.

Deprecated: use ListOfUniqueStrings

func ValidateRFC3339TimeString(i interface{}, k string) (warnings []string, errors []error)

ValidateRFC3339TimeString is a ValidateFunc that ensures a string parses as time.RFC3339 format

Deprecated: use IsRFC3339Time() instead

ValidateRegexp returns a SchemaValidateFunc which tests to make sure the supplied string is a valid regular expression.

Deprecated: use StringIsValidRegExp instead

This section is empty.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4