Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrGitRefName is git reference name error ErrGitRefName = "GitRefNameError" // ErrGlobPattern is returned when glob pattern is invalid ErrGlobPattern = "GlobPattern" // ErrRegexPattern is returned when a regex pattern is invalid ErrRegexPattern = "RegexPattern" )
Variables ¶
View Source
var ( // GitRefNamePatternInvalid is regular expression with unallowed characters in git reference name // They cannot have ASCII control characters (i.e. bytes whose values are lower than \040, or \177 DEL), space, tilde ~, caret ^, or colon : anywhere. // They cannot have question-mark ?, asterisk *, or open bracket [ anywhere GitRefNamePatternInvalid = regexp.MustCompile(`[\000-\037\177 \\~^:?*[]+`) )
Functions ¶
func CheckGitRefAdditionalRulesValid ¶ added in v1.12.0
CheckGitRefAdditionalRulesValid check name is valid on additional rules
func IsValidExternalTrackerURLFormat ¶ added in v1.9.0
IsValidExternalTrackerURLFormat checks if URL matches required syntax for external trackers
func IsValidExternalURL ¶ added in v1.5.1
IsValidExternalURL checks if URL is valid external URL
func IsValidSiteURL ¶ added in v1.15.0
IsValidSiteURL checks if URL is valid
func IsValidURL ¶ added in v1.5.1
IsValidURL checks if URL is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.