Documentation
¶
Overview ¶
Package validate implements validation functions, mainly for strings used in Faws.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCommitTagTooBig = fmt.Errorf("faws/validate: commit tag is too long") ErrCommitTagInvalidCharacters = fmt.Errorf("faws/validate: commit contains illegal characters") ErrCommitTagCannotBeEmpty = fmt.Errorf("faws/validate: commit tag cannot be empty") )
View Source
var ( ErrDescriptionTooLong = fmt.Errorf("faws/validate: description is too long") ErrDescriptionInvalidCharacters = fmt.Errorf("faws/validate: description contains invalid characters") )
View Source
var ( ErrFileNameTooLong = fmt.Errorf("faws/validate: filename is too long") ErrFileNameEmpty = fmt.Errorf("faws/validate: filename is empty") ErrFileNameSpecialCharacters = fmt.Errorf("faws/validate: filename contains special characters") ErrFileNamePathSpecifiers = fmt.Errorf("faws/validate: filename cannot be current or parent directory specifier") ErrFilePathEmpty = fmt.Errorf("faws/validate: filepath is empty") )
View Source
var ( ErrNametagTooLong = fmt.Errorf("faws/validate: nametag is too long") ErrNametagContainsTrailingWhitespace = fmt.Errorf("faws/validate: nametag contains trailing whitespace") ErrNametagInvalidCharacters = fmt.Errorf("faws/validate: nametag contains invalid characters") )
View Source
var (
ErrEmailTooLong = fmt.Errorf("faws/validate: email is too long")
)
Functions ¶
func CommitTag ¶
CommitTag returns an error if tag is invalid
If the tag is empty, err = ErrCommitTagCannotBeEmpty If the tag is too long, err = ErrCommitTagTooBig If the tag contains illegal characters, err = ErrCommitTagInvalidCharacters
func Description ¶
Description returns an error if description is invalid
If description is too long, err = ErrDescriptionTooLong If description contains illegal characters, err = ErrDescriptionInvalidCharacters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.