Documentation ¶
Index ¶
Constants ¶
View Source
const RestrictedProjectNameChars = `[a-zA-Z0-9/_.\-:]`
RestrictedProjectNameChars collects the characters allowed to represent a project.
Variables ¶
View Source
var ( ErrProjectIsLocal = fmt.Errorf("can't use Remote() with local project") ErrProjectIsRemote = fmt.Errorf("can't use Local() with remote project") ErrInvalidProjectName = fmt.Errorf("invalid project name") ProjectNameFormatHint = "project name should be in the form 'project' or 'bob.build/user/project'" )
View Source
var ProjectNameDoubleSlashPattern = regexp.MustCompile(`//+`)
ProjectNameDoubleSlashPattern matches a string containing a double slash (useful to check for URL schema)
View Source
var RestrictedProjectNamePattern = regexp.MustCompile(`^` + RestrictedProjectNameChars + `+$`)
RestrictedProjectNamePattern is a regular expression to validate projectnames.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.