Documentation ¶
Index ¶
- type ConflictsIfMatchesPathValueValidator
- func (v ConflictsIfMatchesPathValueValidator) Description(_ context.Context) string
- func (v ConflictsIfMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
- func (v ConflictsIfMatchesPathValueValidator) Validate(ctx context.Context, req ConflictsIfMatchesPathValueValidatorRequest, ...)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, ...)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (validator ConflictsIfMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type ConflictsIfMatchesPathValueValidatorRequest
- type ConflictsIfMatchesPathValueValidatorResponse
- type IsRequiredIfMatchesPathValueValidator
- func (v IsRequiredIfMatchesPathValueValidator) Description(_ context.Context) string
- func (v IsRequiredIfMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
- func (v IsRequiredIfMatchesPathValueValidator) Validate(ctx context.Context, req IsRequiredIfMatchesPathValueValidatorRequest, ...)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, ...)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (validator IsRequiredIfMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type IsRequiredIfMatchesPathValueValidatorRequest
- type IsRequiredIfMatchesPathValueValidatorResponse
- type IsRequiredIfRegexMatchesPathValueValidator
- func (v IsRequiredIfRegexMatchesPathValueValidator) Description(_ context.Context) string
- func (v IsRequiredIfRegexMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
- func (v IsRequiredIfRegexMatchesPathValueValidator) Validate(ctx context.Context, req IsRequiredIfRegexMatchesPathValueValidatorRequest, ...)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, ...)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type IsRequiredIfRegexMatchesPathValueValidatorRequest
- type IsRequiredIfRegexMatchesPathValueValidatorResponse
- type RegexMatchesPathValueValidator
- func (v RegexMatchesPathValueValidator) Description(_ context.Context) string
- func (v RegexMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
- func (v RegexMatchesPathValueValidator) Validate(ctx context.Context, req RegexMatchesPathValueValidatorRequest, ...)
- func (validator RegexMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (validator RegexMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, ...)
- func (validator RegexMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (validator RegexMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
- func (validator RegexMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (validator RegexMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (validator RegexMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (validator RegexMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (validator RegexMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (validator RegexMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (validator RegexMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RegexMatchesPathValueValidatorRequest
- type RegexMatchesPathValueValidatorResponse
- type ShouldBeDefinedValueIfPathMatchesValueValidator
- func (v ShouldBeDefinedValueIfPathMatchesValueValidator) Description(_ context.Context) string
- func (v ShouldBeDefinedValueIfPathMatchesValueValidator) MarkdownDescription(ctx context.Context) string
- func (v ShouldBeDefinedValueIfPathMatchesValueValidator) Validate(ctx context.Context, ...)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type ShouldBeDefinedValueIfPathMatchesValueValidatorRequest
- type ShouldBeDefinedValueIfPathMatchesValueValidatorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConflictsIfMatchesPathValueValidator ¶ added in v0.16.0
type ConflictsIfMatchesPathValueValidator struct { TargetValue basetypes.StringValue Expressions path.Expressions }
ConflictsIfMatchesPathValueValidator validates that if the provided string value equals the value at the provided path expression(s), the attribute with the validator will be in conflict and should produce a plan error.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func (ConflictsIfMatchesPathValueValidator) Description ¶ added in v0.16.0
func (v ConflictsIfMatchesPathValueValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (ConflictsIfMatchesPathValueValidator) MarkdownDescription ¶ added in v0.16.0
func (v ConflictsIfMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (ConflictsIfMatchesPathValueValidator) Validate ¶ added in v0.16.0
func (v ConflictsIfMatchesPathValueValidator) Validate(ctx context.Context, req ConflictsIfMatchesPathValueValidatorRequest, resp *ConflictsIfMatchesPathValueValidatorResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
func (ConflictsIfMatchesPathValueValidator) ValidateBool ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateFloat32 ¶ added in v1.2.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response)
func (ConflictsIfMatchesPathValueValidator) ValidateFloat64 ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ConflictsIfMatchesPathValueValidator) ValidateInt32 ¶ added in v1.2.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
func (ConflictsIfMatchesPathValueValidator) ValidateInt64 ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ConflictsIfMatchesPathValueValidator) ValidateList ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateMap ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateNumber ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateObject ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateSet ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ConflictsIfMatchesPathValueValidator) ValidateString ¶ added in v0.16.0
func (validator ConflictsIfMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ConflictsIfMatchesPathValueValidatorRequest ¶ added in v0.16.0
type ConflictsIfMatchesPathValueValidatorResponse ¶ added in v0.16.0
type ConflictsIfMatchesPathValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type IsRequiredIfMatchesPathValueValidator ¶
type IsRequiredIfMatchesPathValueValidator struct { TargetValue basetypes.StringValue Expressions path.Expressions }
IsRequiredIfMatchesPathValueValidator validates if the provided string value equals the value at the provided path expression(s). If matched, the current arguemnt is required.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func (IsRequiredIfMatchesPathValueValidator) Description ¶
func (v IsRequiredIfMatchesPathValueValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (IsRequiredIfMatchesPathValueValidator) MarkdownDescription ¶
func (v IsRequiredIfMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (IsRequiredIfMatchesPathValueValidator) Validate ¶
func (v IsRequiredIfMatchesPathValueValidator) Validate(ctx context.Context, req IsRequiredIfMatchesPathValueValidatorRequest, resp *IsRequiredIfMatchesPathValueValidatorResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
func (IsRequiredIfMatchesPathValueValidator) ValidateBool ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateFloat32 ¶ added in v1.2.0
func (validator IsRequiredIfMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response)
func (IsRequiredIfMatchesPathValueValidator) ValidateFloat64 ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (IsRequiredIfMatchesPathValueValidator) ValidateInt32 ¶ added in v1.2.0
func (validator IsRequiredIfMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
func (IsRequiredIfMatchesPathValueValidator) ValidateInt64 ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (IsRequiredIfMatchesPathValueValidator) ValidateList ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateMap ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateNumber ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateObject ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateSet ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (IsRequiredIfMatchesPathValueValidator) ValidateString ¶
func (validator IsRequiredIfMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type IsRequiredIfMatchesPathValueValidatorResponse ¶
type IsRequiredIfMatchesPathValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type IsRequiredIfRegexMatchesPathValueValidator ¶
type IsRequiredIfRegexMatchesPathValueValidator struct { Regexp *regexp.Regexp Message string Expressions path.Expressions }
IsRequiredIfRegexMatchesPathValueValidator validates if the provided regex matches the value at the provided path expression(s). If matched, the current argument is required.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func (IsRequiredIfRegexMatchesPathValueValidator) Description ¶
func (v IsRequiredIfRegexMatchesPathValueValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (IsRequiredIfRegexMatchesPathValueValidator) MarkdownDescription ¶
func (v IsRequiredIfRegexMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (IsRequiredIfRegexMatchesPathValueValidator) Validate ¶
func (v IsRequiredIfRegexMatchesPathValueValidator) Validate(ctx context.Context, req IsRequiredIfRegexMatchesPathValueValidatorRequest, resp *IsRequiredIfRegexMatchesPathValueValidatorResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateBool ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat32 ¶ added in v1.2.0
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat64 ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateInt32 ¶ added in v1.2.0
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateInt64 ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateList ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateMap ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateNumber ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateObject ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateSet ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (IsRequiredIfRegexMatchesPathValueValidator) ValidateString ¶
func (validator IsRequiredIfRegexMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type IsRequiredIfRegexMatchesPathValueValidatorResponse ¶
type IsRequiredIfRegexMatchesPathValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type RegexMatchesPathValueValidator ¶
type RegexMatchesPathValueValidator struct { Regexp *regexp.Regexp Message string Expressions path.Expressions }
RegexMatchesPathValueValidator validates if the provided regex matches the value at the provided path expression(s). If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func (RegexMatchesPathValueValidator) Description ¶
func (v RegexMatchesPathValueValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (RegexMatchesPathValueValidator) MarkdownDescription ¶
func (v RegexMatchesPathValueValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (RegexMatchesPathValueValidator) Validate ¶
func (v RegexMatchesPathValueValidator) Validate(ctx context.Context, req RegexMatchesPathValueValidatorRequest, resp *RegexMatchesPathValueValidatorResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
func (RegexMatchesPathValueValidator) ValidateBool ¶
func (validator RegexMatchesPathValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RegexMatchesPathValueValidator) ValidateFloat32 ¶ added in v1.2.0
func (validator RegexMatchesPathValueValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response)
func (RegexMatchesPathValueValidator) ValidateFloat64 ¶
func (validator RegexMatchesPathValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RegexMatchesPathValueValidator) ValidateInt32 ¶ added in v1.2.0
func (validator RegexMatchesPathValueValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response)
func (RegexMatchesPathValueValidator) ValidateInt64 ¶
func (validator RegexMatchesPathValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RegexMatchesPathValueValidator) ValidateList ¶
func (validator RegexMatchesPathValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RegexMatchesPathValueValidator) ValidateMap ¶
func (validator RegexMatchesPathValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RegexMatchesPathValueValidator) ValidateNumber ¶
func (validator RegexMatchesPathValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RegexMatchesPathValueValidator) ValidateObject ¶
func (validator RegexMatchesPathValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RegexMatchesPathValueValidator) ValidateSet ¶
func (validator RegexMatchesPathValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RegexMatchesPathValueValidator) ValidateString ¶
func (validator RegexMatchesPathValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RegexMatchesPathValueValidatorResponse ¶
type RegexMatchesPathValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type ShouldBeDefinedValueIfPathMatchesValueValidator ¶ added in v0.17.0
type ShouldBeDefinedValueIfPathMatchesValueValidator struct { AttributeValue basetypes.StringValue TargetPathValue basetypes.StringValue Expressions path.Expressions }
ShouldBeDefinedValueIfPathMatchesValueValidator validates that the attribute to which this validator is configured should be a specific value if the given path matches the given value.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func (ShouldBeDefinedValueIfPathMatchesValueValidator) Description ¶ added in v0.17.0
func (v ShouldBeDefinedValueIfPathMatchesValueValidator) Description(_ context.Context) string
Description describes the validation in plain text formatting.
func (ShouldBeDefinedValueIfPathMatchesValueValidator) MarkdownDescription ¶ added in v0.17.0
func (v ShouldBeDefinedValueIfPathMatchesValueValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription describes the validation in Markdown formatting.
func (ShouldBeDefinedValueIfPathMatchesValueValidator) Validate ¶ added in v0.17.0
func (v ShouldBeDefinedValueIfPathMatchesValueValidator) Validate(ctx context.Context, req ShouldBeDefinedValueIfPathMatchesValueValidatorRequest, resp *ShouldBeDefinedValueIfPathMatchesValueValidatorResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateBool ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateFloat64 ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateInt64 ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateList ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateMap ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateNumber ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateObject ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateSet ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateString ¶ added in v0.17.0
func (validator ShouldBeDefinedValueIfPathMatchesValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ShouldBeDefinedValueIfPathMatchesValueValidatorRequest ¶ added in v0.17.0
type ShouldBeDefinedValueIfPathMatchesValueValidatorResponse ¶ added in v0.17.0
type ShouldBeDefinedValueIfPathMatchesValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}