(name string)
| 334 | } |
| 335 | |
| 336 | func (c *dynamicResourceClient) makeURLSegments(name string) []string { |
| 337 | url := []string{} |
| 338 | if len(c.resource.Group) == 0 { |
| 339 | url = append(url, "api") |
| 340 | } else { |
| 341 | url = append(url, "apis", c.resource.Group) |
| 342 | } |
| 343 | url = append(url, c.resource.Version) |
| 344 | |
| 345 | if len(c.namespace) > 0 { |
| 346 | url = append(url, "namespaces", c.namespace) |
| 347 | } |
| 348 | url = append(url, c.resource.Resource) |
| 349 | |
| 350 | if len(name) > 0 { |
| 351 | url = append(url, name) |
| 352 | } |
| 353 | |
| 354 | return url |
| 355 | } |
no outgoing calls
no test coverage detected