Documentation ¶
Overview ¶
Package identifiers implements functions for docker compatible identifier validation.
Index ¶
Constants ¶
View Source
const AllowedIdentfierChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`
Variables ¶
View Source
var AllowedIdentifierPattern = regexp.MustCompile(`^` + AllowedIdentfierChars + `+$`)
Functions ¶
func ValidateDockerCompat ¶
ValidateDockerCompat implements docker compatible identifier validation. The containerd implementation allows single character identifiers, while the Docker compatible implementation requires at least 2 characters for identifiers. The containerd implementation enforces a maximum length constraint of 76 characters, while the Docker compatible implementation omits the length check entirely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.