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

Method Wrap

rest/transport.go:116–118  ·  view source on GitHub ↗

Wrap adds a transport middleware function that will give the caller an opportunity to wrap the underlying http.RoundTripper prior to the first API call being made. The provided function is invoked after any existing transport wrappers are invoked.

(fn transport.WrapperFunc)

Source from the content-addressed store, hash-verified

114// first API call being made. The provided function is invoked after any
115// existing transport wrappers are invoked.
116func (c *Config) Wrap(fn transport.WrapperFunc) {
117 c.WrapTransport = transport.Wrappers(c.WrapTransport, fn)
118}

Callers 4

TransportConfigMethod · 0.95
UpdateTransportConfigMethod · 0.45
mainFunction · 0.45

Calls 1

WrappersFunction · 0.92

Tested by

no test coverage detected