Documentation ¶
Index ¶
- func AtLeastNAttributes(n int, attributes ...string) validator.Object
- func AtMostNAttributes(n int, attributes ...string) validator.Object
- func ExactlyNAttributes(n int, attributes ...string) validator.Object
- func ParseCidr(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseInt(min int, max int) validator.String
- func ParseIp(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseMac() validator.String
- func ParseName() validator.String
- func ParseNetmask(cidrFormat bool, decimalFormat bool) validator.String
- func ParseVar() validator.String
- type ForbiddenWhenValueIsRequest
- type ForbiddenWhenValueIsResponse
- type ForbiddenWhenValueIsValidator
- func (o ForbiddenWhenValueIsValidator) Description(_ context.Context) string
- func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o ForbiddenWhenValueIsValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o ForbiddenWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type NineTypesValidator
- type ParseCidrValidator
- type ParseIntValidator
- type ParseIpValidator
- type ParseMacValidator
- type ParseNameValidator
- type ParseNetmaskValidator
- type ParseVarValidator
- type RequiredWhenValueIsRequest
- type RequiredWhenValueIsResponse
- type RequiredWhenValueIsValidator
- func (o RequiredWhenValueIsValidator) Description(_ context.Context) string
- func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueIsValidator) Validate(ctx context.Context, req RequiredWhenValueIsRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ForbiddenWhenValueIsRequest ¶ added in v0.1.8
type ForbiddenWhenValueIsResponse ¶ added in v0.1.8
type ForbiddenWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type ForbiddenWhenValueIsValidator ¶ added in v0.1.8
type ForbiddenWhenValueIsValidator struct { Expression path.Expression Value attr.Value }
func ForbiddenWhenValueIs ¶ added in v0.1.8
func ForbiddenWhenValueIs(expression path.Expression, value attr.Value) ForbiddenWhenValueIsValidator
func (ForbiddenWhenValueIsValidator) Description ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) Description(_ context.Context) string
func (ForbiddenWhenValueIsValidator) MarkdownDescription ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (ForbiddenWhenValueIsValidator) Validate ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsRequest, resp *ForbiddenWhenValueIsResponse)
func (ForbiddenWhenValueIsValidator) ValidateBool ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ForbiddenWhenValueIsValidator) ValidateFloat64 ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ForbiddenWhenValueIsValidator) ValidateInt64 ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ForbiddenWhenValueIsValidator) ValidateList ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ForbiddenWhenValueIsValidator) ValidateMap ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ForbiddenWhenValueIsValidator) ValidateNumber ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ForbiddenWhenValueIsValidator) ValidateObject ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ForbiddenWhenValueIsValidator) ValidateSet ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ForbiddenWhenValueIsValidator) ValidateString ¶ added in v0.1.8
func (o ForbiddenWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type NineTypesValidator ¶ added in v0.1.8
type ParseCidrValidator ¶
type ParseCidrValidator struct {
// contains filtered or unexported fields
}
func (ParseCidrValidator) Description ¶
func (o ParseCidrValidator) Description(_ context.Context) string
func (ParseCidrValidator) MarkdownDescription ¶
func (o ParseCidrValidator) MarkdownDescription(ctx context.Context) string
func (ParseCidrValidator) ValidateString ¶
func (o ParseCidrValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseIntValidator ¶
type ParseIntValidator struct {
// contains filtered or unexported fields
}
func (ParseIntValidator) Description ¶
func (o ParseIntValidator) Description(_ context.Context) string
func (ParseIntValidator) MarkdownDescription ¶
func (o ParseIntValidator) MarkdownDescription(ctx context.Context) string
func (ParseIntValidator) ValidateString ¶
func (o ParseIntValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseIpValidator ¶
type ParseIpValidator struct {
// contains filtered or unexported fields
}
func (ParseIpValidator) Description ¶
func (o ParseIpValidator) Description(_ context.Context) string
func (ParseIpValidator) MarkdownDescription ¶
func (o ParseIpValidator) MarkdownDescription(ctx context.Context) string
func (ParseIpValidator) ValidateString ¶
func (o ParseIpValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseMacValidator ¶
type ParseMacValidator struct{}
func (ParseMacValidator) Description ¶
func (o ParseMacValidator) Description(_ context.Context) string
func (ParseMacValidator) MarkdownDescription ¶
func (o ParseMacValidator) MarkdownDescription(ctx context.Context) string
func (ParseMacValidator) ValidateString ¶
func (o ParseMacValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseNameValidator ¶
type ParseNameValidator struct{}
func (ParseNameValidator) Description ¶
func (o ParseNameValidator) Description(_ context.Context) string
func (ParseNameValidator) MarkdownDescription ¶
func (o ParseNameValidator) MarkdownDescription(ctx context.Context) string
func (ParseNameValidator) ValidateString ¶
func (o ParseNameValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseNetmaskValidator ¶
type ParseNetmaskValidator struct {
// contains filtered or unexported fields
}
func (ParseNetmaskValidator) Description ¶
func (o ParseNetmaskValidator) Description(_ context.Context) string
func (ParseNetmaskValidator) MarkdownDescription ¶
func (o ParseNetmaskValidator) MarkdownDescription(ctx context.Context) string
func (ParseNetmaskValidator) ValidateString ¶
func (o ParseNetmaskValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseVarValidator ¶
type ParseVarValidator struct{}
func (ParseVarValidator) Description ¶
func (o ParseVarValidator) Description(_ context.Context) string
func (ParseVarValidator) MarkdownDescription ¶
func (o ParseVarValidator) MarkdownDescription(ctx context.Context) string
func (ParseVarValidator) ValidateString ¶
func (o ParseVarValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RequiredWhenValueIsRequest ¶ added in v0.1.8
type RequiredWhenValueIsResponse ¶ added in v0.1.8
type RequiredWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsValidator ¶ added in v0.1.8
type RequiredWhenValueIsValidator struct {
// contains filtered or unexported fields
}
func RequiredWhenValueIs ¶ added in v0.1.8
func RequiredWhenValueIs(expression path.Expression, value attr.Value) RequiredWhenValueIsValidator
func (RequiredWhenValueIsValidator) Description ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) Description(_ context.Context) string
func (RequiredWhenValueIsValidator) MarkdownDescription ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueIsValidator) Validate ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) Validate(ctx context.Context, req RequiredWhenValueIsRequest, resp *RequiredWhenValueIsResponse)
func (RequiredWhenValueIsValidator) ValidateBool ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueIsValidator) ValidateFloat64 ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueIsValidator) ValidateInt64 ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueIsValidator) ValidateList ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueIsValidator) ValidateMap ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueIsValidator) ValidateNumber ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueIsValidator) ValidateObject ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueIsValidator) ValidateSet ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueIsValidator) ValidateString ¶ added in v0.1.8
func (o RequiredWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
Click to show internal directories.
Click to hide internal directories.