MCPcopy Index your code
hub / github.com/cloudfoundry/cli / desiredURL

Function desiredURL

command/v7/create_route_command.go:106–124  ·  view source on GitHub ↗
(domain, hostname, path string, port int)

Source from the content-addressed store, hash-verified

104}
105
106func desiredURL(domain, hostname, path string, port int) string {
107 url := ""
108
109 if hostname != "" {
110 url += hostname + "."
111 }
112
113 url += domain
114
115 if path != "" {
116 url += path
117 }
118
119 if port != 0 {
120 url += fmt.Sprintf(":%d", port)
121 }
122
123 return url
124}
125
126func (cmd CreateRouteCommand) validateAPIVersionForPerRouteOptions() error {
127 err := command.MinimumCCAPIVersionCheck(cmd.Config.APIVersion(), ccversion.MinVersionPerRouteOpts)

Callers 15

ExecuteMethod · 0.85
displayPromptMethod · 0.85
displayIntroMethod · 0.85
displayNotFoundMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected