(domain, hostname, path string, port int)
| 104 | } |
| 105 | |
| 106 | func 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 | |
| 126 | func (cmd CreateRouteCommand) validateAPIVersionForPerRouteOptions() error { |
| 127 | err := command.MinimumCCAPIVersionCheck(cmd.Config.APIVersion(), ccversion.MinVersionPerRouteOpts) |
no outgoing calls
no test coverage detected