Documentation ¶
Index ¶
- Variables
- func ApiManagementServiceName(v interface{}, k string) (warnings []string, errors []error)
- func ApiManagementServicePublisherEmail(v interface{}, k string) (warnings []string, errors []error)
- func ApiManagementServicePublisherName(v interface{}, k string) (warnings []string, errors []error)
- func Base64String() schema.SchemaValidateFunc
- func CognitiveServicesAccountName() schema.SchemaValidateFunc
- func DayOfTheWeek(ignoreCase bool) schema.SchemaValidateFunc
- func DevSpaceName() schema.SchemaValidateFunc
- func DevTestLabName() schema.SchemaValidateFunc
- func DevTestVirtualMachineName(maxLength int) schema.SchemaValidateFunc
- func DevTestVirtualNetworkUsagePermissionType() schema.SchemaValidateFunc
- func FloatAtLeast(min float64) schema.SchemaValidateFunc
- func IPv4Address(i interface{}, k string) (warnings []string, errors []error)
- func IPv4AddressOrEmpty(i interface{}, k string) (warnings []string, errors []error)
- func IPv6Address(i interface{}, k string) (warnings []string, errors []error)
- func IntBetweenAndDivisibleBy(min, max, divisor int) schema.SchemaValidateFunc
- func IntBetweenAndNot(min, max, not int) schema.SchemaValidateFunc
- func IntDivisibleBy(divisor int) schema.SchemaValidateFunc
- func IntInSlice(valid []int) schema.SchemaValidateFunc
- func IoTHubConsumerGroupName(v interface{}, k string) (warnings []string, errors []error)
- func IoTHubName(v interface{}, k string) (warnings []string, errors []error)
- func MACAddress(i interface{}, k string) (warnings []string, errors []error)
- func Month(ignoreCase bool) schema.SchemaValidateFunc
- func NoEmptyStrings(i interface{}, k string) ([]string, []error)
- func PortNumber(i interface{}, k string) (warnings []string, errors []error)
- func PortNumberOrZero(i interface{}, k string) (warnings []string, errors []error)
- func PublicIpDomainNameLabel(v interface{}, k string) (warnings []string, errors []error)
- func RFC3339DateInFutureBy(d time.Duration) schema.SchemaValidateFunc
- func RFC3339Time(i interface{}, k string) (warnings []string, errors []error)
- func RegExHelper(i interface{}, k, r string) (match bool, errors []error)
- func SharedImageGalleryName(v interface{}, k string) (warnings []string, errors []error)
- func SharedImageName(v interface{}, k string) (warnings []string, errors []error)
- func SharedImageVersionName(v interface{}, k string) (warnings []string, errors []error)
- func URLIsHTTPOrHTTPS(i interface{}, k string) (_ []string, errors []error)
- func URLIsHTTPS(i interface{}, k string) (_ []string, errors []error)
- func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc
- func UUID(i interface{}, k string) (warnings []string, errors []error)
- func UUIDOrEmpty(i interface{}, k string) (warnings []string, errors []error)
- func VirtualNetworkRuleName(v interface{}, k string) (warnings []string, errors []error)
Constants ¶
This section is empty.
Variables ¶
var UUIDRegExp = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$")
uuid regex helper
Functions ¶
func Base64String ¶
func Base64String() schema.SchemaValidateFunc
func CognitiveServicesAccountName ¶
func CognitiveServicesAccountName() schema.SchemaValidateFunc
func DayOfTheWeek ¶
func DayOfTheWeek(ignoreCase bool) schema.SchemaValidateFunc
func DevSpaceName ¶
func DevSpaceName() schema.SchemaValidateFunc
func DevTestLabName ¶
func DevTestLabName() schema.SchemaValidateFunc
func DevTestVirtualMachineName ¶
func DevTestVirtualMachineName(maxLength int) schema.SchemaValidateFunc
func DevTestVirtualNetworkUsagePermissionType ¶
func DevTestVirtualNetworkUsagePermissionType() schema.SchemaValidateFunc
func FloatAtLeast ¶
func FloatAtLeast(min float64) schema.SchemaValidateFunc
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float64 and is at least min (inclusive)
func IPv4Address ¶
func IPv4AddressOrEmpty ¶
func IPv6Address ¶
func IntBetweenAndDivisibleBy ¶
func IntBetweenAndDivisibleBy(min, max, divisor int) schema.SchemaValidateFunc
IntBetweenAndDivisibleBy returns a SchemaValidateFunc which tests if the provided value is of type int and is between min and max (inclusive) and is divisible by a given number
func IntBetweenAndNot ¶
func IntBetweenAndNot(min, max, not int) schema.SchemaValidateFunc
func IntDivisibleBy ¶
func IntDivisibleBy(divisor int) schema.SchemaValidateFunc
IntDivisibleBy returns a SchemaValidateFunc which tests if the provided value is of type int and is divisible by a given number
func IntInSlice ¶
func IntInSlice(valid []int) schema.SchemaValidateFunc
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
func IoTHubConsumerGroupName ¶
func IoTHubName ¶
func MACAddress ¶
func Month ¶
func Month(ignoreCase bool) schema.SchemaValidateFunc
func NoEmptyStrings ¶
NoEmptyStrings validates that the string is not just whitespace characters (equal to [\r\n\t\f\v ])
func PortNumber ¶
func PortNumberOrZero ¶
func PublicIpDomainNameLabel ¶
func RFC3339DateInFutureBy ¶
func RFC3339DateInFutureBy(d time.Duration) schema.SchemaValidateFunc
RFC3339 date is duration d or greater into the future
func RFC3339Time ¶
todo, now in terraform helper, switch over once vended -> https://github.com/hashicorp/terraform/blob/master/helper/validation/validation.go#L263
func RegExHelper ¶
func SharedImageGalleryName ¶
func SharedImageName ¶
func SharedImageVersionName ¶
func URLIsHTTPOrHTTPS ¶
func URLIsHTTPS ¶
func URLWithScheme ¶
func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc
func UUIDOrEmpty ¶
func VirtualNetworkRuleName ¶
Types ¶
This section is empty.