validation

package
v1.9.0-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 7 Imported by: 0

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 AddBindingRules

func AddBindingRules()

AddBindingRules adds additional binding rules

func IsAPIURL

func IsAPIURL(uri string) bool

IsAPIURL checks if URL is current Gitea instance API URL

func IsValidExternalURL

func IsValidExternalURL(uri string) bool

IsValidExternalURL checks if URL is valid external URL

func IsValidURL

func IsValidURL(uri string) bool

IsValidURL checks if URL is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL