Documentation ¶
Index ¶
- Constants
- func AddBindingRules()
- func IsAPIURL(uri string) bool
- func IsEmailDomainListed(globs []glob.Glob, email string) bool
- func IsValidExternalTrackerURLFormat(uri string) bool
- func IsValidExternalURL(uri string) bool
- func IsValidSiteURL(uri string) bool
- func IsValidURL(uri string) bool
- func IsValidUsername(name string) bool
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" // ErrUsername is username error ErrUsername = "UsernameError" // ErrInvalidGroupTeamMap is returned when a group team mapping is invalid ErrInvalidGroupTeamMap = "InvalidGroupTeamMap" )
Variables ¶
This section is empty.
Functions ¶
func IsEmailDomainListed ¶
IsEmailDomainListed checks whether the domain of an email address matches a list of domains
func IsValidExternalTrackerURLFormat ¶
IsValidExternalTrackerURLFormat checks if URL matches required syntax for external trackers
func IsValidExternalURL ¶
IsValidExternalURL checks if URL is valid external URL
func IsValidUsername ¶
IsValidUsername checks if username is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.