MCPcopy Create free account
hub / github.com/cloudfoundry/cli / hostNameForString

Function hostNameForString

cf/commands/application/push.go:465–470  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

463var whitespaceRegex = regexp.MustCompile(`[\s_]+`)
464
465func hostNameForString(name string) string {
466 name = strings.ToLower(name)
467 name = whitespaceRegex.ReplaceAllString(name, "-")
468 name = forbiddenHostCharRegex.ReplaceAllString(name, "")
469 return name
470}
471
472func (cmd *Push) findDomain(domainName *string) (models.DomainFields, error) {
473 domain, err := cmd.domainRepo.FirstOrDefault(cmd.config.OrganizationFields().GUID, domainName)

Callers 1

createAndBindRouteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected