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

Method Suffix

rest/request.go:158–164  ·  view source on GitHub ↗

Suffix appends segments to the end of the path. These items will be placed after the prefix and optional Namespace, Resource, or Name sections.

(segments ...string)

Source from the content-addressed store, hash-verified

156// Suffix appends segments to the end of the path. These items will be placed after the prefix and optional
157// Namespace, Resource, or Name sections.
158func (r *Request) Suffix(segments ...string) *Request {
159 if r.err != nil {
160 return r
161 }
162 r.subpath = path.Join(r.subpath, path.Join(segments...))
163 return r
164}
165
166// Resource sets the resource to access (<resource>/[ns/<namespace>/]<name>)
167func (r *Request) Resource(resource string) *Request {

Callers 9

ProxyGetMethod · 0.80
TestDoRequestNewWayFunction · 0.80
TestBackoffLifecycleFunction · 0.80
TestCheckRetryClosesBodyFunction · 0.80
TestDoRequestNewWayObjFunction · 0.80

Calls

no outgoing calls

Tested by 8

TestDoRequestNewWayFunction · 0.64
TestBackoffLifecycleFunction · 0.64
TestCheckRetryClosesBodyFunction · 0.64
TestDoRequestNewWayObjFunction · 0.64