Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForDockerLabel ¶
ForDockerLabel sanitizes a string for use as a Docker label Docker labels must contain only alphanumeric characters, periods, hyphens, and underscores
func ForDomainPart ¶
ForDomainPart sanitizes a string for use as part of a domain name Domain parts can contain lowercase letters, numbers, and hyphens
func ForEnvironmentKey ¶
ForEnvironmentKey sanitizes a string for use as an environment variable key Environment keys must contain only uppercase letters, numbers, and underscores
func ForFilename ¶
ForFilename sanitizes a string for use in a filename (kebab-case).
func ForProjectName ¶
ForProjectName sanitizes a string for use as a Docker Compose project name Project names must start with a letter and contain only lowercase letters, numbers, and underscores
func ForServiceName ¶
ForServiceName sanitizes a string for use as a service name Service names can contain letters, numbers, underscores, and hyphens
func SanitizeForTmuxSession ¶
SanitizeForTmuxSession creates a valid tmux session name from a string. It replaces spaces and special characters with hyphens, converts to lowercase, and ensures the name is a reasonable length.
Types ¶
This section is empty.