MCPcopy
hub / github.com/kubernetes/client-go / makeURLSegments

Method makeURLSegments

dynamic/simple.go:336–355  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

334}
335
336func (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}

Callers 9

CreateMethod · 0.95
UpdateMethod · 0.95
UpdateStatusMethod · 0.95
DeleteMethod · 0.95
DeleteCollectionMethod · 0.95
GetMethod · 0.95
ListMethod · 0.95
WatchMethod · 0.95
PatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected