Move names to a more appropriate package.
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 22b246417f52aa6bd0e358e41e2bfb9c0a59c867 Component: engine
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
package api
|
||||
|
||||
import "regexp"
|
||||
|
||||
// RestrictedNameChars collects the characters allowed to represent a name, normally used to validate container and volume names.
|
||||
const RestrictedNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`
|
||||
|
||||
// RestrictedNamePattern is a regular expression to validate names against the collection of restricted characters.
|
||||
var RestrictedNamePattern = regexp.MustCompile(`^` + RestrictedNameChars + `+$`)
|
||||
Reference in New Issue
Block a user