import "github.com/docker/docker/daemon/names"
const RestrictedNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`
RestrictedNameChars collects the characters allowed to represent a name, normally used to validate container and volume names.
var RestrictedNamePattern = regexp.MustCompile(`^` + RestrictedNameChars + `+$`)
RestrictedNamePattern is a regular expression to validate names against the collection of restricted characters.
Package names imports 1 packages (graph) and is imported by 60 packages. Updated 2018-02-14. Refresh now. Tools for package owners.