Documentation ¶
Index ¶
- type ValidationFn
- type ValidationIntFn
- type ValidationListFn
- type ValidationMapFn
- type Validator
- func BillingRef() *Validator
- func NameServers() *Validator
- func NetworkID() *Validator
- func PrefixLengthV4() *Validator
- func Prefixes() *Validator
- func ProjectID() *Validator
- func ProjectName() *Validator
- func PublicIP() *Validator
- func ReserveProjectLabels() *Validator
- func StringWith(fn func(string) error, description string) *Validator
- func UUID() *Validator
- func (v *Validator) Description(ctx context.Context) string
- func (v *Validator) MarkdownDescription(ctx context.Context) string
- func (v *Validator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (v *Validator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (v *Validator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (v *Validator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationFn ¶
type ValidationFn func(context.Context, validator.StringRequest, *validator.StringResponse)
type ValidationIntFn ¶ added in v1.30.0
type ValidationIntFn func(context.Context, validator.Int64Request, *validator.Int64Response)
type ValidationListFn ¶ added in v1.30.0
type ValidationListFn func(context.Context, validator.ListRequest, *validator.ListResponse)
type ValidationMapFn ¶ added in v1.29.0
type ValidationMapFn func(context.Context, validator.MapRequest, *validator.MapResponse)
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func BillingRef ¶
func BillingRef() *Validator
func NameServers ¶ added in v1.30.0
func NameServers() *Validator
func PrefixLengthV4 ¶ added in v1.30.0
func PrefixLengthV4() *Validator
func ProjectName ¶
func ProjectName() *Validator
func ReserveProjectLabels ¶ added in v1.29.0
func ReserveProjectLabels() *Validator
func (*Validator) MarkdownDescription ¶
func (*Validator) ValidateInt64 ¶ added in v1.30.0
func (v *Validator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (*Validator) ValidateList ¶ added in v1.30.0
func (v *Validator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (*Validator) ValidateMap ¶ added in v1.29.0
func (v *Validator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (*Validator) ValidateString ¶ added in v1.9.0
func (v *Validator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
Click to show internal directories.
Click to hide internal directories.