package names
import "github.com/docker/cli/components/engine/daemon/names"
Index ¶
Constants ¶
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.
Variables ¶
var RestrictedNamePattern = regexp.MustCompile(`^` + RestrictedNameChars + `+$`)
RestrictedNamePattern is a regular expression to validate names against the collection of restricted characters.
Source Files ¶
- Version
- v17.12.0-ce+incompatible
- Published
- Dec 27, 2017
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 minute ago –
Tools for package owners.