Documentation
¶
Index ¶
- func NewARNFunction() function.Function
- func NewAWSRegionFunction() function.Function
- func NewAllValidFunction() function.Function
- func NewAnyValidFunction() function.Function
- func NewAssertFunction() function.Function
- func NewAzureLocationFunction() function.Function
- func NewBase32Function() function.Function
- func NewBase64Function() function.Function
- func NewBetweenFunction() function.Function
- func NewCIDRFunction() function.Function
- func NewCIDROverlapFunction() function.Function
- func NewCreditCardExpiryFunction() function.Function
- func NewCreditCardFunction() function.Function
- func NewDateTimeFunction() function.Function
- func NewDependentValueFunction() function.Function
- func NewDomainFunction() function.Function
- func NewEmailFunction() function.Function
- func NewExactlyOneValidFunction() function.Function
- func NewFQDNFunction() function.Function
- func NewGCPRegionFunction() function.Function
- func NewGCPZoneFunction() function.Function
- func NewHexFunction() function.Function
- func NewHostnameFunction() function.Function
- func NewIPFunction() function.Function
- func NewIPRangeSizeFunction() function.Function
- func NewInListFunction() function.Function
- func NewIntegerFunction() function.Function
- func NewJSONFunction() function.Function
- func NewJWTFunction() function.Function
- func NewK8sAnnotationValueFunction() function.Function
- func NewK8sLabelKeyFunction() function.Function
- func NewK8sLabelValueFunction() function.Function
- func NewListLengthBetweenFunction() function.Function
- func NewListSubsetFunction() function.Function
- func NewListUniqueFunction() function.Function
- func NewMACAddressFunction() function.Function
- func NewMIMETypeFunction() function.Function
- func NewMapKeysMatchFunction() function.Function
- func NewMatchesRegexFunction() function.Function
- func NewMutuallyExclusiveFunction() function.Function
- func NewNonEmptyListFunction() function.Function
- func NewNonNegativeNumberFunction() function.Function
- func NewNotInListFunction() function.Function
- func NewPasswordStrengthFunction() function.Function
- func NewPhoneFunction() function.Function
- func NewPortNumberFunction() function.Function
- func NewPortRangeFunction() function.Function
- func NewPositiveNumberFunction() function.Function
- func NewPrivateIPFunction() function.Function
- func NewPublicIPFunction() function.Function
- func NewResourceNameFunction() function.Function
- func NewSSHPublicKeyFunction() function.Function
- func NewSemVerFunction() function.Function
- func NewSemVerRangeFunction() function.Function
- func NewSetEqualsFunction() function.Function
- func NewSizeBetweenFunction() function.Function
- func NewSlugFunction() function.Function
- func NewStringContainsFunction() function.Function
- func NewStringLengthFunction() function.Function
- func NewStringPrefixFunction() function.Function
- func NewStringSuffixFunction() function.Function
- func NewSubnetFunction() function.Function
- func NewURIFunction() function.Function
- func NewURLFunction() function.Function
- func NewUUIDFunction() function.Function
- func NewUUIDv4OnlyFunction() function.Function
- func NewUsernameFunction() function.Function
- func NewVersionFunction() function.Function
- func ProviderFunctionFactories() []func() function.Function
- func ProviderVersion() basetypes.StringValue
- func SetProviderConfiguration(c ProviderConfiguration)
- func SetProviderVersion(version string)
- func UpdateReadmeFunctionsTable(ctx context.Context, readmePath string) error
- type FunctionDoc
- type K8sAnnotationValueFunction
- func (f *K8sAnnotationValueFunction) Definition(ctx context.Context, req function.DefinitionRequest, ...)
- func (f *K8sAnnotationValueFunction) Metadata(ctx context.Context, req function.MetadataRequest, ...)
- func (f *K8sAnnotationValueFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
- type K8sLabelKeyFunction
- func (f *K8sLabelKeyFunction) Definition(ctx context.Context, req function.DefinitionRequest, ...)
- func (f *K8sLabelKeyFunction) Metadata(ctx context.Context, req function.MetadataRequest, ...)
- func (f *K8sLabelKeyFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
- type K8sLabelValueFunction
- func (f *K8sLabelValueFunction) Definition(ctx context.Context, req function.DefinitionRequest, ...)
- func (f *K8sLabelValueFunction) Metadata(ctx context.Context, req function.MetadataRequest, ...)
- func (f *K8sLabelValueFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
- type ProviderConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewARNFunction ¶ added in v0.7.0
func NewAWSRegionFunction ¶ added in v0.8.0
NewAWSRegionFunction returns a Terraform function that validates AWS region codes.
func NewAllValidFunction ¶ added in v0.1.2
func NewAnyValidFunction ¶ added in v0.1.2
func NewAssertFunction ¶
NewAssertFunction returns a new instance of the assert function.
func NewAzureLocationFunction ¶ added in v0.8.0
NewAzureLocationFunction returns a Terraform function that validates Azure location codes.
func NewBase32Function ¶ added in v0.2.0
NewBase32Function exposes the base32 validator as a Terraform function.
func NewBase64Function ¶
NewBase64Function exposes the base64 validator as a Terraform function.
func NewBetweenFunction ¶ added in v0.1.6
func NewCIDRFunction ¶ added in v0.1.4
NewCIDRFunction exposes the CIDR validator as a Terraform function.
func NewCIDROverlapFunction ¶ added in v0.3.0
NewCIDROverlapFunction exposes the CIDR overlap validator.
func NewCreditCardExpiryFunction ¶ added in v0.11.2
NewCreditCardExpiryFunction exposes the credit card expiry validator as a Terraform function.
func NewCreditCardFunction ¶
NewCreditCardFunction exposes the credit card validator as a Terraform function.
func NewDateTimeFunction ¶ added in v0.1.6
NewDateTimeFunction exposes the datetime validator as a Terraform function.
func NewDependentValueFunction ¶ added in v0.11.0
NewDependentValueFunction exposes the dependent_value validator as a Terraform function.
func NewDomainFunction ¶
NewDomainFunction exposes the domain validator as a Terraform function.
func NewEmailFunction ¶
NewEmailFunction exposes the email validator as a Terraform function.
func NewExactlyOneValidFunction ¶ added in v0.1.7
func NewFQDNFunction ¶ added in v0.2.1
func NewGCPRegionFunction ¶ added in v0.8.0
NewGCPRegionFunction returns a Terraform function that validates GCP region codes.
func NewGCPZoneFunction ¶ added in v0.9.0
NewGCPZoneFunction returns a Terraform function that validates GCP zone codes.
func NewHexFunction ¶ added in v0.2.0
func NewHostnameFunction ¶ added in v0.1.5
NewHostnameFunction exposes the hostname validator as a Terraform function.
func NewIPFunction ¶ added in v0.1.1
NewIPFunction exposes the IP validator as a Terraform function.
func NewIPRangeSizeFunction ¶ added in v0.7.0
NewIPRangeSizeFunction exposes the ip_range_size validator as a Terraform function.
func NewInListFunction ¶ added in v0.1.6
NewInListFunction exposes the in_list validator as a Terraform function.
func NewIntegerFunction ¶ added in v0.2.0
NewIntegerFunction exposes the integer validator as a Terraform function.
func NewJSONFunction ¶ added in v0.1.1
NewJSONFunction exposes the JSON validator as a Terraform function.
func NewJWTFunction ¶ added in v0.2.2
func NewK8sAnnotationValueFunction ¶ added in v0.11.2
func NewK8sLabelKeyFunction ¶ added in v0.11.2
func NewK8sLabelValueFunction ¶ added in v0.11.2
func NewListLengthBetweenFunction ¶ added in v0.11.0
NewListLengthBetweenFunction exposes the list_length_between validator as a Terraform function.
func NewListSubsetFunction ¶ added in v0.6.0
func NewListUniqueFunction ¶ added in v0.11.0
NewListUniqueFunction exposes the list_unique validator as a Terraform function.
func NewMACAddressFunction ¶ added in v0.1.5
NewMACAddressFunction exposes the MAC address validator as a Terraform function.
func NewMIMETypeFunction ¶ added in v0.9.0
NewMIMETypeFunction exposes the MIME type validator as a Terraform function.
func NewMapKeysMatchFunction ¶ added in v0.10.0
NewMapKeysMatchFunction exposes the map keys matching helper as a Terraform function.
func NewMatchesRegexFunction ¶ added in v0.1.2
NewMatchesRegexFunction exposes a regex matching validator.
func NewMutuallyExclusiveFunction ¶ added in v0.10.0
NewMutuallyExclusiveFunction exposes the mutually exclusive validator as a Terraform function.
func NewNonEmptyListFunction ¶ added in v0.10.0
NewNonEmptyListFunction exposes the non-empty list validator as a Terraform function.
func NewNonNegativeNumberFunction ¶ added in v0.10.0
NewNonNegativeNumberFunction exposes the non_negative_number validator as a Terraform function.
func NewNotInListFunction ¶ added in v0.1.8
NewNotInListFunction exposes the not_in_list validator as a Terraform function.
func NewPasswordStrengthFunction ¶ added in v0.2.1
func NewPhoneFunction ¶ added in v0.1.2
NewPhoneFunction exposes the phone validator as a Terraform function.
func NewPortNumberFunction ¶ added in v0.6.0
NewPortNumberFunction exposes the port number validator as a Terraform function.
func NewPortRangeFunction ¶ added in v0.4.0
NewPortRangeFunction exposes the port range validator as a Terraform function.
func NewPositiveNumberFunction ¶ added in v0.10.0
NewPositiveNumberFunction exposes the positive_number validator as a Terraform function.
func NewPrivateIPFunction ¶ added in v0.5.0
NewPrivateIPFunction exposes the private IP validator as a Terraform function.
func NewPublicIPFunction ¶ added in v0.6.0
NewPublicIPFunction exposes the public IP validator as a Terraform function with options. Signature: public_ip(value, exclude_link_local, exclude_reserved)
func NewResourceNameFunction ¶ added in v0.11.0
NewResourceNameFunction exposes the resource name validator as a Terraform function.
func NewSSHPublicKeyFunction ¶ added in v0.2.0
NewSSHPublicKeyFunction exposes the ssh_public_key validator as a Terraform function.
func NewSemVerFunction ¶ added in v0.1.1
NewSemVerFunction exposes the semver validator as a Terraform function.
func NewSemVerRangeFunction ¶ added in v0.3.0
func NewSetEqualsFunction ¶ added in v0.1.8
NewSetEqualsFunction exposes the set equivalence helper as a Terraform function.
func NewSizeBetweenFunction ¶ added in v0.10.0
NewSizeBetweenFunction exposes the size_between validator as a Terraform function.
func NewSlugFunction ¶ added in v0.9.0
NewSlugFunction exposes the slug validator as a Terraform function.
func NewStringContainsFunction ¶ added in v0.1.7
NewStringContainsFunction exposes the string_contains validator as a Terraform function.
func NewStringLengthFunction ¶ added in v0.1.4
NewStringLengthFunction exposes the string length validator as a Terraform function.
func NewStringPrefixFunction ¶ added in v0.1.8
NewStringPrefixFunction exposes the string prefix validator as a Terraform function.
func NewStringSuffixFunction ¶ added in v0.1.7
NewStringSuffixFunction exposes the string suffix validator as a Terraform function.
func NewSubnetFunction ¶ added in v0.6.0
NewSubnetFunction exposes the subnet validator as a Terraform function.
func NewURIFunction ¶ added in v0.5.0
NewURIFunction exposes the URI validator as a Terraform function.
func NewURLFunction ¶ added in v0.1.3
NewURLFunction exposes the URL validator as a Terraform function.
func NewUUIDFunction ¶
NewUUIDFunction exposes the UUID validator as a Terraform function.
func NewUUIDv4OnlyFunction ¶ added in v0.9.0
NewUUIDv4OnlyFunction exposes the UUIDv4Only validator as a Terraform function.
func NewUsernameFunction ¶ added in v0.1.8
NewUsernameFunction exposes the username validator as a Terraform function.
func NewVersionFunction ¶ added in v0.1.3
NewVersionFunction exposes the provider version as a Terraform function.
func ProviderFunctionFactories ¶ added in v0.1.1
ProviderFunctionFactories returns all Terraform function constructors exposed by the provider.
func ProviderVersion ¶ added in v0.1.3
func ProviderVersion() basetypes.StringValue
ProviderVersion returns the current provider version value.
func SetProviderConfiguration ¶ added in v0.2.0
func SetProviderConfiguration(c ProviderConfiguration)
SetProviderConfiguration updates provider-level defaults.
func SetProviderVersion ¶ added in v0.1.3
func SetProviderVersion(version string)
SetProviderVersion updates the version string used by provider diagnostic functions.
When the provider is built without an explicit version, Terraform sets the version string to an empty value. Normalize that case to "dev" so the function remains useful during local development.
Types ¶
type FunctionDoc ¶ added in v0.1.1
FunctionDoc captures high level documentation details for a Terraform function.
func AvailableFunctionDocs ¶ added in v0.1.1
func AvailableFunctionDocs(ctx context.Context) ([]FunctionDoc, error)
AvailableFunctionDocs returns documentation metadata for every exported Terraform function.
type K8sAnnotationValueFunction ¶ added in v0.11.2
type K8sAnnotationValueFunction struct{}
K8sAnnotationValueFunction validates Kubernetes annotation values.
func (*K8sAnnotationValueFunction) Definition ¶ added in v0.11.2
func (f *K8sAnnotationValueFunction) Definition(ctx context.Context, req function.DefinitionRequest, resp *function.DefinitionResponse)
func (*K8sAnnotationValueFunction) Metadata ¶ added in v0.11.2
func (f *K8sAnnotationValueFunction) Metadata(ctx context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (*K8sAnnotationValueFunction) Run ¶ added in v0.11.2
func (f *K8sAnnotationValueFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type K8sLabelKeyFunction ¶ added in v0.11.2
type K8sLabelKeyFunction struct{}
K8sLabelKeyFunction validates Kubernetes label keys.
func (*K8sLabelKeyFunction) Definition ¶ added in v0.11.2
func (f *K8sLabelKeyFunction) Definition(ctx context.Context, req function.DefinitionRequest, resp *function.DefinitionResponse)
func (*K8sLabelKeyFunction) Metadata ¶ added in v0.11.2
func (f *K8sLabelKeyFunction) Metadata(ctx context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (*K8sLabelKeyFunction) Run ¶ added in v0.11.2
func (f *K8sLabelKeyFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type K8sLabelValueFunction ¶ added in v0.11.2
type K8sLabelValueFunction struct{}
K8sLabelValueFunction validates Kubernetes label values.
func (*K8sLabelValueFunction) Definition ¶ added in v0.11.2
func (f *K8sLabelValueFunction) Definition(ctx context.Context, req function.DefinitionRequest, resp *function.DefinitionResponse)
func (*K8sLabelValueFunction) Metadata ¶ added in v0.11.2
func (f *K8sLabelValueFunction) Metadata(ctx context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (*K8sLabelValueFunction) Run ¶ added in v0.11.2
func (f *K8sLabelValueFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type ProviderConfiguration ¶ added in v0.2.0
type ProviderConfiguration struct {
DatetimeLayouts []string
}
ProviderConfiguration holds provider-level defaults used by function wrappers.
func GetProviderConfiguration ¶ added in v0.2.0
func GetProviderConfiguration() ProviderConfiguration
GetProviderConfiguration returns a snapshot of provider-level defaults.
Source Files
¶
- arn.go
- assert.go
- aws_region.go
- azure_location.go
- base32.go
- base64.go
- between.go
- cidr.go
- cidr_overlap.go
- common.go
- composite.go
- credit_card.go
- credit_card_expiry.go
- datetime.go
- dependent_value.go
- docgen.go
- domain.go
- email.go
- fqdn.go
- gcp_region.go
- gcp_zone.go
- hex.go
- hostname.go
- in_list.go
- integer.go
- ip.go
- ip_range_size.go
- json.go
- jwt.go
- k8s_annotation_value.go
- k8s_label_key.go
- k8s_label_value.go
- list_length_between.go
- list_subset.go
- list_unique.go
- mac_address.go
- map_keys_match.go
- matches_regex.go
- mime_type.go
- mutually_exclusive.go
- non_empty_list.go
- non_negative_number.go
- not_in_list.go
- password_strength.go
- phone.go
- port_number.go
- port_range.go
- positive_number.go
- private_ip.go
- provider_configuration.go
- public_ip.go
- registry.go
- resource_name.go
- semver.go
- semver_range.go
- set_equals.go
- size_between.go
- slug.go
- ssh_public_key.go
- string_contains.go
- string_length.go
- string_prefix.go
- string_suffix.go
- subnet.go
- uri.go
- url.go
- username.go
- uuid.go
- uuidv4_only.go
- version.go