Documentation ¶
Overview ¶
Package validations contains validation functions for ent fields
Package validations contains validation functions for ent fields
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFieldEmpty = errors.New("must not be empty")
ErrFieldEmpty is returned when a field is empty
View Source
var ErrInvalidIPAddress = errors.New("invalid ip address")
ErrInvalidIPAddress is returned when the given string is not a valid IP address
View Source
var ErrRestrictedPort = errors.New("port number restricted")
ErrRestrictedPort is returned when the given port is restricted
Functions ¶
func OptionalNameField ¶ added in v0.3.2
OptionalNameField validates the name field when optional
func RestrictedPorts ¶ added in v0.0.26
RestrictedPorts validates if the given port is restricted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.