Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringLowercaseValidator ¶
type StringLowercaseValidator struct{}
func StringLowercase ¶
func StringLowercase() StringLowercaseValidator
StringLowercase checks that a string is lowercase.
func (StringLowercaseValidator) Description ¶
func (v StringLowercaseValidator) Description(ctx context.Context) string
Description returns a plain text description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringLowercaseValidator) MarkdownDescription ¶
func (v StringLowercaseValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringLowercaseValidator) Validate ¶
func (v StringLowercaseValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
type StringMatchValidator ¶
type StringMatchValidator struct {
Slice []string
}
func StringMatch ¶
func StringMatch(match []string) StringMatchValidator
StringMatch check that a string is contained in a given slice.
func (StringMatchValidator) Description ¶
func (v StringMatchValidator) Description(ctx context.Context) string
Description returns a plain text description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringMatchValidator) MarkdownDescription ¶
func (v StringMatchValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringMatchValidator) Validate ¶
func (v StringMatchValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.