package names
import "github.com/docker/docker/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
- v23.0.0-rc.1+incompatible
- Published
- Dec 21, 2022
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 23 minutes ago –
Tools for package owners.