safeFriendlyName returns a API safe version of the container's friendly name. See provisioner/regexes.go for the regex used to validate the friendly name on the API side.
(name string)
| 1110 | // See provisioner/regexes.go for the regex used to validate |
| 1111 | // the friendly name on the API side. |
| 1112 | func safeFriendlyName(name string) string { |
| 1113 | name = strings.ToLower(name) |
| 1114 | name = strings.ReplaceAll(name, "_", "-") |
| 1115 | |
| 1116 | return name |
| 1117 | } |
| 1118 | |
| 1119 | // expandedAgentName creates an agent name by including parent directories |
| 1120 | // from the workspace folder path to avoid name collisions. Like `safeAgentName`, |
no outgoing calls
no test coverage detected