Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ErrGitRefName is git reference name error
ErrGitRefName = "GitRefNameError"
)
Variables ¶
View Source
var (
// GitRefNamePattern is regular expression with unallowed characters in git reference name
GitRefNamePattern = regexp.MustCompile("[^\\d\\w-_\\./]")
)
Functions ¶
func IsAPIURL ¶ added in v1.5.1
func IsAPIURL(uri string) bool
IsAPIURL checks if URL is current Gitea instance API URL
func IsValidExternalURL ¶ added in v1.5.1
func IsValidExternalURL(uri string) bool
IsValidExternalURL checks if URL is valid external URL
func IsValidURL ¶ added in v1.5.1
func IsValidURL(uri string) bool
IsValidURL checks if URL is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.