Documentation ¶
Overview ¶
Package validator implements common field and structure validation that is used to validate the API structures supplied on the client interface, and is also used internally to validate the information stored in the backend datastore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(current interface{}) error
Validate is used to validate the supplied structure according to the registered field and structure validators.
func ValidateMetadataIDsAssigned ¶
func ValidateMetadataIDsAssigned(rm unversioned.ResourceMetadata) error
ValidateMetadataIDsAssigned is used to validate the Resource Metadata to ensure that all necessary fields are present. This is split from the validator so it can be used conditionally depending on the command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.