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 ParseCidrPort(requireIp bool, allowVar bool) validator.String
- func ParseImageDimension(x int, y int) validator.String
- func ParseImageSize(maxSize int) validator.String
- func ParseImageType(allowPng bool, allowJpg bool) validator.String
- func ParseInt(min int, max int) validator.String
- func ParseIp(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseIpPort(requireIp bool, allowVar bool) validator.String
- func ParseMac() validator.String
- func ParseMagic() validator.String
- func ParseName() validator.String
- func ParseNetmask(cidrFormat bool, decimalFormat bool) validator.String
- func ParseRangeOfInt(min int, max int, equalAlloweds bool) validator.String
- func ParseVar() validator.String
- type AllowedWhenValueIsInRequest
- type AllowedWhenValueIsInResponse
- type AllowedWhenValueIsInValidator
- func (o AllowedWhenValueIsInValidator) Description(_ context.Context) string
- func (o AllowedWhenValueIsInValidator) MarkdownDescription(ctx context.Context) string
- func (o AllowedWhenValueIsInValidator) Validate(ctx context.Context, req AllowedWhenValueIsInRequest, ...)
- func (o AllowedWhenValueIsInValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AllowedWhenValueIsInValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AllowedWhenValueIsInValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AllowedWhenValueIsInValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AllowedWhenValueIsInValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AllowedWhenValueIsInValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AllowedWhenValueIsInValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AllowedWhenValueIsInValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AllowedWhenValueIsInValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AllowedWhenValueIsInWithDefaultRequest
- type AllowedWhenValueIsInWithDefaultResponse
- type AllowedWhenValueIsInWithDefaultValidator
- func (o AllowedWhenValueIsInWithDefaultValidator) Description(_ context.Context) string
- func (o AllowedWhenValueIsInWithDefaultValidator) MarkdownDescription(ctx context.Context) string
- func (o AllowedWhenValueIsInWithDefaultValidator) Validate(ctx context.Context, req AllowedWhenValueIsInWithDefaultRequest, ...)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AllowedWhenValueIsInWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AllowedWhenValueIsNullRequest
- type AllowedWhenValueIsNullResponse
- type AllowedWhenValueIsNullValidator
- func (o AllowedWhenValueIsNullValidator) Description(_ context.Context) string
- func (o AllowedWhenValueIsNullValidator) MarkdownDescription(ctx context.Context) string
- func (o AllowedWhenValueIsNullValidator) Validate(ctx context.Context, req AllowedWhenValueIsNullRequest, ...)
- func (o AllowedWhenValueIsNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AllowedWhenValueIsNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AllowedWhenValueIsNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AllowedWhenValueIsNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AllowedWhenValueIsNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AllowedWhenValueIsNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AllowedWhenValueIsNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AllowedWhenValueIsNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AllowedWhenValueIsNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AllowedWhenValueIsRequest
- type AllowedWhenValueIsResponse
- type AllowedWhenValueIsValidator
- func (o AllowedWhenValueIsValidator) Description(_ context.Context) string
- func (o AllowedWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o AllowedWhenValueIsValidator) Validate(ctx context.Context, req AllowedWhenValueIsRequest, ...)
- func (o AllowedWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AllowedWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AllowedWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AllowedWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AllowedWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AllowedWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AllowedWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AllowedWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AllowedWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AllowedWhenValueIsWithDefaultRequest
- type AllowedWhenValueIsWithDefaultResponse
- type AllowedWhenValueIsWithDefaultValidator
- func (o AllowedWhenValueIsWithDefaultValidator) Description(_ context.Context) string
- func (o AllowedWhenValueIsWithDefaultValidator) MarkdownDescription(ctx context.Context) string
- func (o AllowedWhenValueIsWithDefaultValidator) Validate(ctx context.Context, req AllowedWhenValueIsWithDefaultRequest, ...)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AllowedWhenValueIsWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AtLeastNOfValidator
- func (o AtLeastNOfValidator) Description(ctx context.Context) string
- func (o AtLeastNOfValidator) MarkdownDescription(_ context.Context) string
- func (o AtLeastNOfValidator) Validate(ctx context.Context, req AtLeastNOfValidatorRequest, ...)
- func (o AtLeastNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AtLeastNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AtLeastNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AtLeastNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AtLeastNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AtLeastNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AtLeastNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AtLeastNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AtLeastNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AtLeastNOfValidatorRequest
- type AtLeastNOfValidatorResponse
- type AtMostNOfValidator
- func (o AtMostNOfValidator) Description(ctx context.Context) string
- func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string
- func (o AtMostNOfValidator) Validate(ctx context.Context, req AtMostNOfValidatorRequest, ...)
- func (o AtMostNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AtMostNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AtMostNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AtMostNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AtMostNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AtMostNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AtMostNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AtMostNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AtMostNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AtMostNOfValidatorRequest
- type AtMostNOfValidatorResponse
- type CanOnlyBeTrueWhenValueIsRequest
- type CanOnlyBeTrueWhenValueIsResponse
- type CanOnlyBeTrueWhenValueIsValidator
- func (o CanOnlyBeTrueWhenValueIsValidator) Description(_ context.Context) string
- func (o CanOnlyBeTrueWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o CanOnlyBeTrueWhenValueIsValidator) Validate(ctx context.Context, req CanOnlyBeTrueWhenValueIsRequest, ...)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o CanOnlyBeTrueWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type CannotBeTrueWhenValueIsRequest
- type CannotBeTrueWhenValueIsResponse
- type CannotBeTrueWhenValueIsValidator
- func (o CannotBeTrueWhenValueIsValidator) Description(_ context.Context) string
- func (o CannotBeTrueWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o CannotBeTrueWhenValueIsValidator) Validate(ctx context.Context, req CannotBeTrueWhenValueIsRequest, ...)
- func (o CannotBeTrueWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o CannotBeTrueWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o CannotBeTrueWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o CannotBeTrueWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o CannotBeTrueWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o CannotBeTrueWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o CannotBeTrueWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o CannotBeTrueWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o CannotBeTrueWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type ForbiddenWhenValueIsInWithDefaultRequest
- type ForbiddenWhenValueIsInWithDefaultResponse
- type ForbiddenWhenValueIsInWithDefaultValidator
- func (o ForbiddenWhenValueIsInWithDefaultValidator) Description(_ context.Context) string
- func (o ForbiddenWhenValueIsInWithDefaultValidator) MarkdownDescription(ctx context.Context) string
- func (o ForbiddenWhenValueIsInWithDefaultValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsInWithDefaultRequest, ...)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- 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 ForbiddenWhenValueIsWithDefaultRequest
- type ForbiddenWhenValueIsWithDefaultResponse
- type ForbiddenWhenValueIsWithDefaultValidator
- func (o ForbiddenWhenValueIsWithDefaultValidator) Description(_ context.Context) string
- func (o ForbiddenWhenValueIsWithDefaultValidator) MarkdownDescription(ctx context.Context) string
- func (o ForbiddenWhenValueIsWithDefaultValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsWithDefaultRequest, ...)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type NineTypesValidator
- type ParseCidrPortValidator
- type ParseCidrValidator
- type ParseImageDimensionValidator
- type ParseImageSizeValidator
- type ParseImageTypeValidator
- type ParseIntValidator
- type ParseIpPortValidator
- type ParseIpValidator
- type ParseMacValidator
- type ParseMagicValidator
- type ParseNameValidator
- type ParseNetmaskValidator
- type ParseRangeOfIntValidator
- type ParseVarValidator
- type RequiredWhenValueIsInRequest
- type RequiredWhenValueIsInResponse
- type RequiredWhenValueIsInValidator
- func (o RequiredWhenValueIsInValidator) Description(_ context.Context) string
- func (o RequiredWhenValueIsInValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueIsInValidator) Validate(ctx context.Context, req RequiredWhenValueIsInRequest, ...)
- func (o RequiredWhenValueIsInValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueIsInValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueIsInValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueIsInValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueIsInValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueIsInValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueIsInValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueIsInValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueIsInValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RequiredWhenValueIsNotNullRequest
- type RequiredWhenValueIsNotNullResponse
- type RequiredWhenValueIsNotNullValidator
- func (o RequiredWhenValueIsNotNullValidator) Description(_ context.Context) string
- func (o RequiredWhenValueIsNotNullValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueIsNotNullValidator) Validate(ctx context.Context, req RequiredWhenValueIsNotNullRequest, ...)
- func (o RequiredWhenValueIsNotNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueIsNotNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueIsNotNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueIsNotNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueIsNotNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueIsNotNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueIsNotNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueIsNotNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueIsNotNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RequiredWhenValueIsNullRequest
- type RequiredWhenValueIsNullResponse
- type RequiredWhenValueIsNullValidator
- func (o RequiredWhenValueIsNullValidator) Description(_ context.Context) string
- func (o RequiredWhenValueIsNullValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueIsNullValidator) Validate(ctx context.Context, req RequiredWhenValueIsNullRequest, ...)
- func (o RequiredWhenValueIsNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueIsNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueIsNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueIsNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueIsNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueIsNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueIsNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueIsNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueIsNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- 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 ¶
func ParseCidrPort ¶ added in v0.2.15
func ParseImageSize ¶ added in v0.1.34
func ParseImageType ¶ added in v0.1.34
func ParseIpPort ¶ added in v0.2.15
func ParseMagic ¶ added in v0.1.32
func ParseRangeOfInt ¶ added in v0.1.13
Types ¶
type AllowedWhenValueIsInRequest ¶ added in v0.1.11
type AllowedWhenValueIsInResponse ¶ added in v0.1.11
type AllowedWhenValueIsInResponse struct {
Diagnostics diag.Diagnostics
}
type AllowedWhenValueIsInValidator ¶ added in v0.1.11
type AllowedWhenValueIsInValidator struct { Expression path.Expression Values []attr.Value }
func AllowedWhenValueIsIn ¶ added in v0.1.11
func AllowedWhenValueIsIn(expression path.Expression, values []attr.Value) AllowedWhenValueIsInValidator
func (AllowedWhenValueIsInValidator) Description ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) Description(_ context.Context) string
func (AllowedWhenValueIsInValidator) MarkdownDescription ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) MarkdownDescription(ctx context.Context) string
func (AllowedWhenValueIsInValidator) Validate ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) Validate(ctx context.Context, req AllowedWhenValueIsInRequest, resp *AllowedWhenValueIsInResponse)
func (AllowedWhenValueIsInValidator) ValidateBool ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AllowedWhenValueIsInValidator) ValidateFloat64 ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AllowedWhenValueIsInValidator) ValidateInt64 ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AllowedWhenValueIsInValidator) ValidateList ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AllowedWhenValueIsInValidator) ValidateMap ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AllowedWhenValueIsInValidator) ValidateNumber ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AllowedWhenValueIsInValidator) ValidateObject ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AllowedWhenValueIsInValidator) ValidateSet ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AllowedWhenValueIsInValidator) ValidateString ¶ added in v0.1.11
func (o AllowedWhenValueIsInValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AllowedWhenValueIsInWithDefaultRequest ¶ added in v0.2.15
type AllowedWhenValueIsInWithDefaultResponse ¶ added in v0.2.15
type AllowedWhenValueIsInWithDefaultResponse struct {
Diagnostics diag.Diagnostics
}
type AllowedWhenValueIsInWithDefaultValidator ¶ added in v0.2.15
type AllowedWhenValueIsInWithDefaultValidator struct { Expression path.Expression Values []attr.Value DefaultValue attr.Value }
func AllowedWhenValueIsInWithDefault ¶ added in v0.2.15
func AllowedWhenValueIsInWithDefault( expression path.Expression, values []attr.Value, defaultValue attr.Value, ) AllowedWhenValueIsInWithDefaultValidator
func (AllowedWhenValueIsInWithDefaultValidator) Description ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) Description(_ context.Context) string
func (AllowedWhenValueIsInWithDefaultValidator) MarkdownDescription ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) MarkdownDescription(ctx context.Context) string
func (AllowedWhenValueIsInWithDefaultValidator) Validate ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) Validate(ctx context.Context, req AllowedWhenValueIsInWithDefaultRequest, resp *AllowedWhenValueIsInWithDefaultResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateBool ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateFloat64 ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateInt64 ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateList ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateMap ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateNumber ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateObject ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateSet ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AllowedWhenValueIsInWithDefaultValidator) ValidateString ¶ added in v0.2.15
func (o AllowedWhenValueIsInWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AllowedWhenValueIsNullRequest ¶ added in v0.1.44
type AllowedWhenValueIsNullResponse ¶ added in v0.1.44
type AllowedWhenValueIsNullResponse struct {
Diagnostics diag.Diagnostics
}
type AllowedWhenValueIsNullValidator ¶ added in v0.1.44
type AllowedWhenValueIsNullValidator struct {
// contains filtered or unexported fields
}
func AllowedWhenValueIsNull ¶ added in v0.1.44
func AllowedWhenValueIsNull(expression path.Expression) AllowedWhenValueIsNullValidator
func (AllowedWhenValueIsNullValidator) Description ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) Description(_ context.Context) string
func (AllowedWhenValueIsNullValidator) MarkdownDescription ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) MarkdownDescription(ctx context.Context) string
func (AllowedWhenValueIsNullValidator) Validate ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) Validate(ctx context.Context, req AllowedWhenValueIsNullRequest, resp *AllowedWhenValueIsNullResponse)
func (AllowedWhenValueIsNullValidator) ValidateBool ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AllowedWhenValueIsNullValidator) ValidateFloat64 ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AllowedWhenValueIsNullValidator) ValidateInt64 ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AllowedWhenValueIsNullValidator) ValidateList ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AllowedWhenValueIsNullValidator) ValidateMap ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AllowedWhenValueIsNullValidator) ValidateNumber ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AllowedWhenValueIsNullValidator) ValidateObject ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AllowedWhenValueIsNullValidator) ValidateSet ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AllowedWhenValueIsNullValidator) ValidateString ¶ added in v0.1.44
func (o AllowedWhenValueIsNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AllowedWhenValueIsRequest ¶ added in v0.1.9
type AllowedWhenValueIsResponse ¶ added in v0.1.9
type AllowedWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type AllowedWhenValueIsValidator ¶ added in v0.1.9
type AllowedWhenValueIsValidator struct { Expression path.Expression Value attr.Value }
func AllowedWhenValueIs ¶ added in v0.1.9
func AllowedWhenValueIs(expression path.Expression, value attr.Value) AllowedWhenValueIsValidator
func (AllowedWhenValueIsValidator) Description ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) Description(_ context.Context) string
func (AllowedWhenValueIsValidator) MarkdownDescription ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (AllowedWhenValueIsValidator) Validate ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) Validate(ctx context.Context, req AllowedWhenValueIsRequest, resp *AllowedWhenValueIsResponse)
func (AllowedWhenValueIsValidator) ValidateBool ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AllowedWhenValueIsValidator) ValidateFloat64 ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AllowedWhenValueIsValidator) ValidateInt64 ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AllowedWhenValueIsValidator) ValidateList ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AllowedWhenValueIsValidator) ValidateMap ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AllowedWhenValueIsValidator) ValidateNumber ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AllowedWhenValueIsValidator) ValidateObject ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AllowedWhenValueIsValidator) ValidateSet ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AllowedWhenValueIsValidator) ValidateString ¶ added in v0.1.9
func (o AllowedWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AllowedWhenValueIsWithDefaultRequest ¶ added in v0.2.15
type AllowedWhenValueIsWithDefaultResponse ¶ added in v0.2.15
type AllowedWhenValueIsWithDefaultResponse struct {
Diagnostics diag.Diagnostics
}
type AllowedWhenValueIsWithDefaultValidator ¶ added in v0.2.15
type AllowedWhenValueIsWithDefaultValidator struct { Expression path.Expression Value attr.Value DefaultValue attr.Value }
func AllowedWhenValueIsWithDefault ¶ added in v0.2.15
func AllowedWhenValueIsWithDefault( expression path.Expression, value attr.Value, default_value attr.Value, ) AllowedWhenValueIsWithDefaultValidator
func (AllowedWhenValueIsWithDefaultValidator) Description ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) Description(_ context.Context) string
func (AllowedWhenValueIsWithDefaultValidator) MarkdownDescription ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) MarkdownDescription(ctx context.Context) string
func (AllowedWhenValueIsWithDefaultValidator) Validate ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) Validate(ctx context.Context, req AllowedWhenValueIsWithDefaultRequest, resp *AllowedWhenValueIsWithDefaultResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateBool ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateFloat64 ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AllowedWhenValueIsWithDefaultValidator) ValidateInt64 ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AllowedWhenValueIsWithDefaultValidator) ValidateList ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateMap ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateNumber ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateObject ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateSet ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AllowedWhenValueIsWithDefaultValidator) ValidateString ¶ added in v0.2.15
func (o AllowedWhenValueIsWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AtLeastNOfValidator ¶ added in v0.1.9
type AtLeastNOfValidator struct { N int PathExpressions path.Expressions }
AtLeastNOfValidator is the underlying struct implementing AtLeastNOf.
func (AtLeastNOfValidator) Description ¶ added in v0.1.9
func (o AtLeastNOfValidator) Description(ctx context.Context) string
func (AtLeastNOfValidator) MarkdownDescription ¶ added in v0.1.9
func (o AtLeastNOfValidator) MarkdownDescription(_ context.Context) string
func (AtLeastNOfValidator) Validate ¶ added in v0.1.9
func (o AtLeastNOfValidator) Validate(ctx context.Context, req AtLeastNOfValidatorRequest, resp *AtLeastNOfValidatorResponse)
func (AtLeastNOfValidator) ValidateBool ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AtLeastNOfValidator) ValidateFloat64 ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AtLeastNOfValidator) ValidateInt64 ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AtLeastNOfValidator) ValidateList ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AtLeastNOfValidator) ValidateMap ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AtLeastNOfValidator) ValidateNumber ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AtLeastNOfValidator) ValidateObject ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AtLeastNOfValidator) ValidateSet ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AtLeastNOfValidator) ValidateString ¶ added in v0.1.9
func (o AtLeastNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AtLeastNOfValidatorRequest ¶ added in v0.1.9
type AtLeastNOfValidatorResponse ¶ added in v0.1.9
type AtLeastNOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type AtMostNOfValidator ¶ added in v0.1.9
type AtMostNOfValidator struct { N int PathExpressions path.Expressions }
AtMostNOfValidator is the underlying struct implementing AtMostNOf.
func (AtMostNOfValidator) Description ¶ added in v0.1.9
func (o AtMostNOfValidator) Description(ctx context.Context) string
func (AtMostNOfValidator) MarkdownDescription ¶ added in v0.1.9
func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string
func (AtMostNOfValidator) Validate ¶ added in v0.1.9
func (o AtMostNOfValidator) Validate(ctx context.Context, req AtMostNOfValidatorRequest, resp *AtMostNOfValidatorResponse)
func (AtMostNOfValidator) ValidateBool ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AtMostNOfValidator) ValidateFloat64 ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AtMostNOfValidator) ValidateInt64 ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AtMostNOfValidator) ValidateList ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AtMostNOfValidator) ValidateMap ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AtMostNOfValidator) ValidateNumber ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AtMostNOfValidator) ValidateObject ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AtMostNOfValidator) ValidateSet ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AtMostNOfValidator) ValidateString ¶ added in v0.1.9
func (o AtMostNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AtMostNOfValidatorRequest ¶ added in v0.1.9
type AtMostNOfValidatorResponse ¶ added in v0.1.9
type AtMostNOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type CanOnlyBeTrueWhenValueIsRequest ¶ added in v0.2.15
type CanOnlyBeTrueWhenValueIsResponse ¶ added in v0.2.15
type CanOnlyBeTrueWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type CanOnlyBeTrueWhenValueIsValidator ¶ added in v0.2.15
type CanOnlyBeTrueWhenValueIsValidator struct { Expression path.Expression Value attr.Value }
func CanOnlyBeTrueWhenValueIs ¶ added in v0.2.15
func CanOnlyBeTrueWhenValueIs(expression path.Expression, value attr.Value) CanOnlyBeTrueWhenValueIsValidator
func (CanOnlyBeTrueWhenValueIsValidator) Description ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) Description(_ context.Context) string
func (CanOnlyBeTrueWhenValueIsValidator) MarkdownDescription ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (CanOnlyBeTrueWhenValueIsValidator) Validate ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) Validate(ctx context.Context, req CanOnlyBeTrueWhenValueIsRequest, resp *CanOnlyBeTrueWhenValueIsResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateBool ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateFloat64 ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateInt64 ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateList ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateMap ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateNumber ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateObject ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateSet ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (CanOnlyBeTrueWhenValueIsValidator) ValidateString ¶ added in v0.2.15
func (o CanOnlyBeTrueWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type CannotBeTrueWhenValueIsRequest ¶ added in v0.2.12
type CannotBeTrueWhenValueIsResponse ¶ added in v0.2.12
type CannotBeTrueWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type CannotBeTrueWhenValueIsValidator ¶ added in v0.2.12
type CannotBeTrueWhenValueIsValidator struct { Expression path.Expression Value attr.Value }
func CannotBeTrueWhenValueIs ¶ added in v0.2.12
func CannotBeTrueWhenValueIs(expression path.Expression, value attr.Value) CannotBeTrueWhenValueIsValidator
func (CannotBeTrueWhenValueIsValidator) Description ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) Description(_ context.Context) string
func (CannotBeTrueWhenValueIsValidator) MarkdownDescription ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (CannotBeTrueWhenValueIsValidator) Validate ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) Validate(ctx context.Context, req CannotBeTrueWhenValueIsRequest, resp *CannotBeTrueWhenValueIsResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateBool ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateFloat64 ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (CannotBeTrueWhenValueIsValidator) ValidateInt64 ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (CannotBeTrueWhenValueIsValidator) ValidateList ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateMap ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateNumber ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateObject ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateSet ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (CannotBeTrueWhenValueIsValidator) ValidateString ¶ added in v0.2.12
func (o CannotBeTrueWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ForbiddenWhenValueIsInWithDefaultRequest ¶ added in v0.2.15
type ForbiddenWhenValueIsInWithDefaultResponse ¶ added in v0.2.15
type ForbiddenWhenValueIsInWithDefaultResponse struct {
Diagnostics diag.Diagnostics
}
type ForbiddenWhenValueIsInWithDefaultValidator ¶ added in v0.2.15
type ForbiddenWhenValueIsInWithDefaultValidator struct { Expression path.Expression Values []attr.Value DefaultValue attr.Value }
func ForbiddenWhenValueIsInWithDefault ¶ added in v0.2.15
func ForbiddenWhenValueIsInWithDefault( expression path.Expression, values []attr.Value, defaultValue attr.Value, ) ForbiddenWhenValueIsInWithDefaultValidator
func (ForbiddenWhenValueIsInWithDefaultValidator) Description ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) Description(_ context.Context) string
func (ForbiddenWhenValueIsInWithDefaultValidator) MarkdownDescription ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) MarkdownDescription(ctx context.Context) string
func (ForbiddenWhenValueIsInWithDefaultValidator) Validate ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsInWithDefaultRequest, resp *ForbiddenWhenValueIsInWithDefaultResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateBool ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateFloat64 ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateInt64 ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateList ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateMap ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateNumber ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateObject ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateSet ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateString ¶ added in v0.2.15
func (o ForbiddenWhenValueIsInWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
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 ForbiddenWhenValueIsWithDefaultRequest ¶ added in v0.2.15
type ForbiddenWhenValueIsWithDefaultResponse ¶ added in v0.2.15
type ForbiddenWhenValueIsWithDefaultResponse struct {
Diagnostics diag.Diagnostics
}
type ForbiddenWhenValueIsWithDefaultValidator ¶ added in v0.2.15
type ForbiddenWhenValueIsWithDefaultValidator struct { Expression path.Expression Value attr.Value DefaultValue attr.Value }
func ForbiddenWhenValueIsWithDefault ¶ added in v0.2.15
func ForbiddenWhenValueIsWithDefault( expression path.Expression, value attr.Value, defaultValue attr.Value, ) ForbiddenWhenValueIsWithDefaultValidator
func (ForbiddenWhenValueIsWithDefaultValidator) Description ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) Description(_ context.Context) string
func (ForbiddenWhenValueIsWithDefaultValidator) MarkdownDescription ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) MarkdownDescription(ctx context.Context) string
func (ForbiddenWhenValueIsWithDefaultValidator) Validate ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsWithDefaultRequest, resp *ForbiddenWhenValueIsWithDefaultResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateBool ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateFloat64 ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateInt64 ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateList ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateMap ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateNumber ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateObject ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateSet ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ForbiddenWhenValueIsWithDefaultValidator) ValidateString ¶ added in v0.2.15
func (o ForbiddenWhenValueIsWithDefaultValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type NineTypesValidator ¶ added in v0.1.8
type NineTypesValidator interface { validator.Bool validator.Float64 validator.Int64 validator.List validator.Map validator.Number validator.Object validator.Set validator.String }
func AtLeastNOf ¶ added in v0.1.9
func AtLeastNOf(n int, expressions ...path.Expression) NineTypesValidator
AtLeastNOf checks that of a set of path.Expression, including the attribute this validator is applied to, at least 'n' have a non-null value.
Any relative path.Expression will be resolved using the attribute being validated.
func AtMostNOf ¶ added in v0.1.9
func AtMostNOf(n int, expressions ...path.Expression) NineTypesValidator
AtMostNOf checks that of a set of path.Expression, including the attribute this validator is applied to, at most 'n' have a non-null value.
Any relative path.Expression will be resolved using the attribute being validated.
type ParseCidrPortValidator ¶ added in v0.2.15
type ParseCidrPortValidator struct {
// contains filtered or unexported fields
}
func (ParseCidrPortValidator) Description ¶ added in v0.2.15
func (o ParseCidrPortValidator) Description(_ context.Context) string
func (ParseCidrPortValidator) MarkdownDescription ¶ added in v0.2.15
func (o ParseCidrPortValidator) MarkdownDescription(ctx context.Context) string
func (ParseCidrPortValidator) ValidateString ¶ added in v0.2.15
func (o ParseCidrPortValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
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 ParseImageDimensionValidator ¶ added in v0.1.34
type ParseImageDimensionValidator struct {
// contains filtered or unexported fields
}
func (ParseImageDimensionValidator) Description ¶ added in v0.1.34
func (o ParseImageDimensionValidator) Description(_ context.Context) string
func (ParseImageDimensionValidator) MarkdownDescription ¶ added in v0.1.34
func (o ParseImageDimensionValidator) MarkdownDescription(ctx context.Context) string
func (ParseImageDimensionValidator) ValidateString ¶ added in v0.1.34
func (o ParseImageDimensionValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseImageSizeValidator ¶ added in v0.1.34
type ParseImageSizeValidator struct {
// contains filtered or unexported fields
}
func (ParseImageSizeValidator) Description ¶ added in v0.1.34
func (o ParseImageSizeValidator) Description(_ context.Context) string
func (ParseImageSizeValidator) MarkdownDescription ¶ added in v0.1.34
func (o ParseImageSizeValidator) MarkdownDescription(ctx context.Context) string
func (ParseImageSizeValidator) ValidateString ¶ added in v0.1.34
func (o ParseImageSizeValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseImageTypeValidator ¶ added in v0.1.34
type ParseImageTypeValidator struct {
// contains filtered or unexported fields
}
func (ParseImageTypeValidator) Description ¶ added in v0.1.34
func (o ParseImageTypeValidator) Description(_ context.Context) string
func (ParseImageTypeValidator) MarkdownDescription ¶ added in v0.1.34
func (o ParseImageTypeValidator) MarkdownDescription(ctx context.Context) string
func (ParseImageTypeValidator) ValidateString ¶ added in v0.1.34
func (o ParseImageTypeValidator) 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 ParseIpPortValidator ¶ added in v0.2.15
type ParseIpPortValidator struct {
// contains filtered or unexported fields
}
func (ParseIpPortValidator) Description ¶ added in v0.2.15
func (o ParseIpPortValidator) Description(_ context.Context) string
func (ParseIpPortValidator) MarkdownDescription ¶ added in v0.2.15
func (o ParseIpPortValidator) MarkdownDescription(ctx context.Context) string
func (ParseIpPortValidator) ValidateString ¶ added in v0.2.15
func (o ParseIpPortValidator) 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 ParseMagicValidator ¶ added in v0.1.32
type ParseMagicValidator struct{}
func (ParseMagicValidator) Description ¶ added in v0.1.32
func (o ParseMagicValidator) Description(_ context.Context) string
func (ParseMagicValidator) MarkdownDescription ¶ added in v0.1.32
func (o ParseMagicValidator) MarkdownDescription(ctx context.Context) string
func (ParseMagicValidator) ValidateString ¶ added in v0.1.32
func (o ParseMagicValidator) 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 ParseRangeOfIntValidator ¶ added in v0.1.13
type ParseRangeOfIntValidator struct {
// contains filtered or unexported fields
}
func (ParseRangeOfIntValidator) Description ¶ added in v0.1.13
func (o ParseRangeOfIntValidator) Description(_ context.Context) string
func (ParseRangeOfIntValidator) MarkdownDescription ¶ added in v0.1.13
func (o ParseRangeOfIntValidator) MarkdownDescription(ctx context.Context) string
func (ParseRangeOfIntValidator) ValidateString ¶ added in v0.1.13
func (o ParseRangeOfIntValidator) 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 RequiredWhenValueIsInRequest ¶ added in v0.2.15
type RequiredWhenValueIsInResponse ¶ added in v0.2.15
type RequiredWhenValueIsInResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsInValidator ¶ added in v0.2.15
type RequiredWhenValueIsInValidator struct { Expression path.Expression Values []attr.Value }
func RequiredWhenValueIsIn ¶ added in v0.2.15
func RequiredWhenValueIsIn(expression path.Expression, values []attr.Value) RequiredWhenValueIsInValidator
func (RequiredWhenValueIsInValidator) Description ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) Description(_ context.Context) string
func (RequiredWhenValueIsInValidator) MarkdownDescription ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueIsInValidator) Validate ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) Validate(ctx context.Context, req RequiredWhenValueIsInRequest, resp *RequiredWhenValueIsInResponse)
func (RequiredWhenValueIsInValidator) ValidateBool ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueIsInValidator) ValidateFloat64 ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueIsInValidator) ValidateInt64 ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueIsInValidator) ValidateList ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueIsInValidator) ValidateMap ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueIsInValidator) ValidateNumber ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueIsInValidator) ValidateObject ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueIsInValidator) ValidateSet ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueIsInValidator) ValidateString ¶ added in v0.2.15
func (o RequiredWhenValueIsInValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RequiredWhenValueIsNotNullRequest ¶ added in v0.1.44
type RequiredWhenValueIsNotNullResponse ¶ added in v0.1.44
type RequiredWhenValueIsNotNullResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsNotNullValidator ¶ added in v0.1.44
type RequiredWhenValueIsNotNullValidator struct {
// contains filtered or unexported fields
}
func RequiredWhenValueIsNotNull ¶ added in v0.1.44
func RequiredWhenValueIsNotNull(expression path.Expression) RequiredWhenValueIsNotNullValidator
func (RequiredWhenValueIsNotNullValidator) Description ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) Description(_ context.Context) string
func (RequiredWhenValueIsNotNullValidator) MarkdownDescription ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueIsNotNullValidator) Validate ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) Validate(ctx context.Context, req RequiredWhenValueIsNotNullRequest, resp *RequiredWhenValueIsNotNullResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateBool ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateFloat64 ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueIsNotNullValidator) ValidateInt64 ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueIsNotNullValidator) ValidateList ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateMap ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateNumber ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateObject ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateSet ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueIsNotNullValidator) ValidateString ¶ added in v0.1.44
func (o RequiredWhenValueIsNotNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RequiredWhenValueIsNullRequest ¶ added in v0.1.37
type RequiredWhenValueIsNullResponse ¶ added in v0.1.37
type RequiredWhenValueIsNullResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsNullValidator ¶ added in v0.1.37
type RequiredWhenValueIsNullValidator struct {
// contains filtered or unexported fields
}
func RequiredWhenValueIsNull ¶ added in v0.1.37
func RequiredWhenValueIsNull(expression path.Expression) RequiredWhenValueIsNullValidator
func (RequiredWhenValueIsNullValidator) Description ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) Description(_ context.Context) string
func (RequiredWhenValueIsNullValidator) MarkdownDescription ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueIsNullValidator) Validate ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) Validate(ctx context.Context, req RequiredWhenValueIsNullRequest, resp *RequiredWhenValueIsNullResponse)
func (RequiredWhenValueIsNullValidator) ValidateBool ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueIsNullValidator) ValidateFloat64 ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueIsNullValidator) ValidateInt64 ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueIsNullValidator) ValidateList ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueIsNullValidator) ValidateMap ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueIsNullValidator) ValidateNumber ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueIsNullValidator) ValidateObject ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueIsNullValidator) ValidateSet ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueIsNullValidator) ValidateString ¶ added in v0.1.37
func (o RequiredWhenValueIsNullValidator) ValidateString(ctx 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)
Source Files
¶
- allowed_when_value_is.go
- allowed_when_value_is_in.go
- allowed_when_value_is_in_with_default.go
- allowed_when_value_is_null.go
- allowed_when_value_is_with_default.go
- at_least_n_of.go
- at_most_n_of.go
- can_only_be_true_when_value_is.go
- cannot_be_true_when_value_is.go
- constants.go
- forbidden_when_value_is.go
- forbidden_when_value_is_in_with_default.go
- forbidden_when_value_is_with_default.go
- object_must_have_n_og.go
- parse_cidr.go
- parse_cidr_port.go
- parse_image_dimension.go
- parse_image_size.go
- parse_image_type.go
- parse_int.go
- parse_ip.go
- parse_ip_port.go
- parse_mac.go
- parse_magic.go
- parse_name.go
- parse_netmask.go
- parse_range_int.go
- parse_var.go
- required_when_value_is.go
- required_when_value_is_in.go
- required_when_value_is_not_null.go
- required_when_value_is_null.go
Click to show internal directories.
Click to hide internal directories.