validate

package
v0.11.1-0...-8ab92b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxInputVars

func MaxInputVars(v string) error

func PhpMaxFileUploads

func PhpMaxFileUploads(v string) error

Types

type DatabaseName

type DatabaseName struct{}

DatabaseName is used to validate a database names

func (*DatabaseName) Validate

func (v *DatabaseName) Validate(input string) error

type HostnameValidator

type HostnameValidator struct{}

HostnameValidator is used to validate a provided hostname

func (*HostnameValidator) Validate

func (v *HostnameValidator) Validate(input string) error

type IntegerValidator

type IntegerValidator struct{}

IntegerValidator validates if the input is a valid integer

func (*IntegerValidator) Validate

func (v *IntegerValidator) Validate(input string) error

type IsBoolean

type IsBoolean struct{}

func (*IsBoolean) Validate

func (v *IsBoolean) Validate(input string) error

type IsMegabyte

type IsMegabyte struct{}

func (*IsMegabyte) Validate

func (v *IsMegabyte) Validate(input string) error

type MaxExecutionTime

type MaxExecutionTime struct{}

func (*MaxExecutionTime) Validate

func (v *MaxExecutionTime) Validate(input string) error

type MultipleHostnameValidator

type MultipleHostnameValidator struct{}

MultipleHostnameValidator validates a comma separated list of hostnames

func (*MultipleHostnameValidator) Parse

func (v *MultipleHostnameValidator) Parse(input string) ([]string, error)

func (*MultipleHostnameValidator) Validate

func (v *MultipleHostnameValidator) Validate(input string) error

type PHPVersionValidator

type PHPVersionValidator struct{}

func (*PHPVersionValidator) Validate

func (v *PHPVersionValidator) Validate(input string) error

type Validator

type Validator interface {
	Validate(input string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL