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

Method WrapTransport

rest/plugin.go:32–32  ·  view source on GitHub ↗

WrapTransport allows the plugin to create a modified RoundTripper that attaches authorization headers (or other info) to requests.

(http.RoundTripper)

Source from the content-addressed store, hash-verified

30 // WrapTransport allows the plugin to create a modified RoundTripper that
31 // attaches authorization headers (or other info) to requests.
32 WrapTransport(http.RoundTripper) http.RoundTripper
33 // Login allows the plugin to initialize its configuration. It must not
34 // require direct user interaction.
35 Login() error

Callers 5

TestRoundTripperFunction · 0.65
HTTPWrappersForConfigFunction · 0.65
TestCopyConfigFunction · 0.65
TestAuthPluginPersistFunction · 0.65

Implementers 7

gcpAuthProviderplugin/pkg/client/auth/gcp/gcp.go
azureAuthProviderplugin/pkg/client/auth/azure/azure.go
openstackAuthProviderplugin/pkg/client/auth/openstack/opens
oidcAuthProviderplugin/pkg/client/auth/oidc/oidc.go
pluginArest/plugin_test.go
pluginBrest/plugin_test.go
pluginPersistrest/plugin_test.go

Calls

no outgoing calls

Tested by 4

TestRoundTripperFunction · 0.52
TestCopyConfigFunction · 0.52
TestAuthPluginPersistFunction · 0.52