(prefix, resource, namespace, name string)
| 1970 | } |
| 1971 | |
| 1972 | func defaultResourcePathWithPrefix(prefix, resource, namespace, name string) string { |
| 1973 | var path string |
| 1974 | path = "/api/" + v1.SchemeGroupVersion.Version |
| 1975 | |
| 1976 | if prefix != "" { |
| 1977 | path = path + "/" + prefix |
| 1978 | } |
| 1979 | if namespace != "" { |
| 1980 | path = path + "/namespaces/" + namespace |
| 1981 | } |
| 1982 | // Resource names are lower case. |
| 1983 | resource = strings.ToLower(resource) |
| 1984 | if resource != "" { |
| 1985 | path = path + "/" + resource |
| 1986 | } |
| 1987 | if name != "" { |
| 1988 | path = path + "/" + name |
| 1989 | } |
| 1990 | return path |
| 1991 | } |
no outgoing calls
no test coverage detected