Documentation ¶
Index ¶
- Variables
- func ValidateAddress(in *net.Address) []error
- func ValidateAddressList(in *net.AddressList) []error
- func ValidateAddressSpec(in *net.AddressSpec) []error
- func ValidateIPSpec(in *net.IPSpec) []error
- func ValidateLink(in *net.Link) []error
- func ValidateLinkList(in *net.LinkList) []error
- func ValidateLinkSpec(in *net.LinkSpec) []error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // When an IPSpec has an invalid 'type' field. ErrInvalidIPType = errors.New("ip type is not set to either 'IPv4' or 'IPv6'") // When an IPSpec has an invalid address that can't be parsed. ErrInvalidIP = errors.New("ip address is not correctly formatted") )
View Source
var ( // When a mac address is invalid. ErrInvalidMACAddress = errors.New("invalid mac address") )
Functions ¶
func ValidateAddress ¶
Statically Validates an Address object coming into the API and returns a list of errors with the object.
func ValidateAddressList ¶
func ValidateAddressList(in *net.AddressList) []error
Statically Validates an AddressList object coming into the API and returns a list of errors with the object.
func ValidateAddressSpec ¶
func ValidateAddressSpec(in *net.AddressSpec) []error
Statically validates an AddressSpec object coming into the API and returns a list of errors with the object.
func ValidateIPSpec ¶
func ValidateLink ¶
Statically Validates an Link object coming into the API and returns a list of errors with the object.
func ValidateLinkList ¶
Statically Validates a LinkList object coming into the API and returns a list of errors with the object.
func ValidateLinkSpec ¶
Statically Validates an LinkSpec object coming into the API and returns a list of errors with the object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.