This section is empty.
This section is empty.
All returns a SchemaValidateFunc which tests if the provided value passes all provided SchemaValidateFunc
AllDiag returns a SchemaValidateDiagFunc which tests if the provided value passes all provided SchemaValidateDiagFunc
Any returns a SchemaValidateFunc which tests if the provided value passes any of the provided SchemaValidateFunc
AnyDiag returns a SchemaValidateDiagFunc which tests if the provided value passes any of the provided SchemaValidateDiagFunc
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float and is at least minVal (inclusive)
FloatAtMost returns a SchemaValidateFunc which tests if the provided value is of type float and is at most maxVal (inclusive)
FloatBetween returns a SchemaValidateFunc which tests if the provided value is of type float64 and is between minVal and maxVal (inclusive).
IntAtLeast returns a SchemaValidateFunc which tests if the provided value is of type int and is at least minVal (inclusive)
IntAtMost returns a SchemaValidateFunc which tests if the provided value is of type int and is at most maxVal (inclusive)
IntBetween returns a SchemaValidateFunc which tests if the provided value is of type int and is between minVal and maxVal (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 minVal and maxVal (inclusive)
IsDayOfTheWeek is 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 is 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.
MapKeyLenBetween returns a SchemaValidateDiagFunc which tests if the provided value is of type map and the length of all keys are between minVal and maxVal (inclusive)
MapKeyMatch returns a SchemaValidateDiagFunc which tests if the provided value is of type map and all keys match a given regexp. Optionally an error message can be provided to return something friendlier than "expected to match some globby regexp".
MapValueLenBetween returns a SchemaValidateDiagFunc which tests if the provided value is of type map and the length of all values are between minVal and maxVal (inclusive)
MapValueMatch returns a SchemaValidateDiagFunc which tests if the provided value is of type map and all values match a given regexp. Optionally an error message can be provided to return something friendlier than "expected to match some globby regexp".
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.
PathMatches compares two Paths for equality. For cty.IndexStep, unknown key values are treated as an Any qualifier and will match any index step of the same type.
PreferWriteOnlyAttribute is a ValidateRawResourceConfigFunc that returns a warning if the Terraform client supports write-only attributes and the old attribute is not null. The last step in the path must be a cty.GetAttrStep{}. When creating a cty.IndexStep{} to into a nested attribute, use an unknown value of the index type to indicate any key value. For lists: cty.Index(cty.UnknownVal(cty.Number)), For maps: cty.Index(cty.UnknownVal(cty.String)), For sets: cty.Index(cty.UnknownVal(cty.Object(nil))),
NOTE: This validator will produce persistent warnings for practitioners on every Terraform run as long as the specified non-write-only attribute has a value in the configuration. The validator will also produce warnings for users of shared modules who cannot immediately take action on the warning.
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 minVal and maxVal (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
ToDiagFunc is a wrapper for legacy schema.SchemaValidateFunc converting it to schema.SchemaValidateDiagFunc
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