validate

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MPL-2.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 ApiManagementApiName added in v1.24.0

func ApiManagementApiName(v interface{}, k string) (ws []string, es []error)

func ApiManagementApiPath added in v1.24.0

func ApiManagementApiPath(v interface{}, k string) (ws []string, es []error)

func ApiManagementBackendName added in v1.32.0

func ApiManagementBackendName(v interface{}, k string) (warnings []string, errors []error)

func ApiManagementChildName added in v1.23.0

func ApiManagementChildName(v interface{}, k string) (warnings []string, errors []error)

func ApiManagementServiceName added in v1.17.0

func ApiManagementServiceName(v interface{}, k string) (warnings []string, errors []error)

func ApiManagementServicePublisherEmail added in v1.17.0

func ApiManagementServicePublisherEmail(v interface{}, k string) (warnings []string, errors []error)

func ApiManagementServicePublisherName added in v1.17.0

func ApiManagementServicePublisherName(v interface{}, k string) (warnings []string, errors []error)

func ApiManagementUserName added in v1.23.0

func ApiManagementUserName(v interface{}, k string) (warnings []string, errors []error)

func Base64String added in v1.18.0

func Base64String() schema.SchemaValidateFunc

func CIDR added in v1.22.0

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

func CognitiveServicesAccountName added in v1.17.0

func CognitiveServicesAccountName() schema.SchemaValidateFunc

func CosmosAccountName added in v1.28.0

func CosmosAccountName(v interface{}, k string) (warnings []string, errors []error)

func CosmosEntityName added in v1.28.0

func CosmosEntityName(v interface{}, k string) (warnings []string, errors []error)

func DatabaseCollation added in v1.33.0

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

func DayOfTheWeek added in v1.17.0

func DayOfTheWeek(ignoreCase bool) schema.SchemaValidateFunc

func DevSpaceName added in v1.18.0

func DevSpaceName() schema.SchemaValidateFunc

func DevTestLabName added in v1.17.0

func DevTestLabName() schema.SchemaValidateFunc

func DevTestVirtualMachineName added in v1.17.0

func DevTestVirtualMachineName(maxLength int) schema.SchemaValidateFunc

func DevTestVirtualNetworkUsagePermissionType added in v1.17.0

func DevTestVirtualNetworkUsagePermissionType() schema.SchemaValidateFunc

func FloatAtLeast added in v1.19.0

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 HDInsightClusterVersion added in v1.25.0

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

func HDInsightName added in v1.25.0

func HDInsightName(v interface{}, k string) (warnings []string, errors []error)

func IPv4Address added in v1.9.0

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

func IPv4AddressOrEmpty added in v1.9.0

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

func IPv6Address added in v1.17.0

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

func ISO8601DateTime added in v1.34.0

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

func ISO8601Duration added in v1.33.0

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

func IntBetweenAndDivisibleBy added in v1.19.0

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 added in v1.9.0

func IntBetweenAndNot(min, max, not int) schema.SchemaValidateFunc

func IntDivisibleBy added in v1.19.0

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 added in v1.19.0

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 added in v1.19.0

func IoTHubConsumerGroupName(v interface{}, k string) (warnings []string, errors []error)

func IoTHubName added in v1.19.0

func IoTHubName(v interface{}, k string) (warnings []string, errors []error)

func KubernetesAdminUserName added in v1.22.0

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

func KubernetesAgentPoolName added in v1.22.0

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

func KubernetesDNSPrefix added in v1.22.0

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

func MACAddress added in v1.9.0

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

func MariaDBFirewallRuleName added in v1.31.0

func MariaDBFirewallRuleName(v interface{}, _ string) (warnings []string, errors []error)

func MariaDBServerName added in v1.31.0

func MariaDBServerName(v interface{}, _ string) (warnings []string, errors []error)

func Month added in v1.17.0

func Month(ignoreCase bool) schema.SchemaValidateFunc

func NoEmptyStrings added in v1.20.0

func NoEmptyStrings(i interface{}, k string) ([]string, []error)

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

func PortNumber added in v1.13.0

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

func PortNumberOrZero added in v1.16.0

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

func PublicIpDomainNameLabel added in v1.18.0

func PublicIpDomainNameLabel(v interface{}, k string) (warnings []string, errors []error)

func RFC3339DateInFutureBy added in v1.9.0

func RFC3339DateInFutureBy(d time.Duration) schema.SchemaValidateFunc

RFC3339 date is duration d or greater into the future

func RFC3339Time added in v1.9.0

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

todo, now in terraform helper, switch over once vended -> https://github.com/hashicorp/terraform/blob/master/helper/validation/validation.go#L263

func RegExHelper added in v1.20.0

func RegExHelper(i interface{}, k, r string) (match bool, errors []error)

func SharedAccessSignatureIP added in v1.34.0

func SharedAccessSignatureIP(v interface{}, k string) (warnings []string, errors []error)

func SharedImageGalleryName added in v1.16.0

func SharedImageGalleryName(v interface{}, k string) (warnings []string, errors []error)

func SharedImageName added in v1.16.0

func SharedImageName(v interface{}, k string) (warnings []string, errors []error)

func SharedImageVersionName added in v1.16.0

func SharedImageVersionName(v interface{}, k string) (warnings []string, errors []error)

func StorageShareDirectoryName added in v1.32.0

func StorageShareDirectoryName(v interface{}, k string) (warnings []string, errors []error)

func StreamAnalyticsJobStreamingUnits added in v1.25.0

func StreamAnalyticsJobStreamingUnits(i interface{}, k string) (w []string, es []error)

func URLIsHTTPOrHTTPS added in v1.9.0

func URLIsHTTPOrHTTPS(i interface{}, k string) (_ []string, errors []error)

func URLIsHTTPS added in v1.16.0

func URLIsHTTPS(i interface{}, k string) (_ []string, errors []error)

func URLWithScheme added in v1.9.0

func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc

func UUID added in v1.10.0

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

func UUIDOrEmpty added in v1.21.0

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

func VirtualMachineTimeZone added in v1.33.0

func VirtualMachineTimeZone() schema.SchemaValidateFunc

func VirtualNetworkRuleName added in v1.14.0

func VirtualNetworkRuleName(v interface{}, k string) (warnings []string, errors []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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