package
11.0.0+incompatible
Repository: https://github.com/kubernetes/client-go.git
Documentation: pkg.go.dev

# Packages

# Functions

ContextCanceller prevents new requests after the provided context is finished.
DebugWrappers wraps a round tripper and logs based on the current log level.
HTTPWrappersForConfig wraps a round tripper with any relevant layered behavior from the config.
New returns an http.RoundTripper that will provide the authentication or transport level security defined by the provided Config.
NewAuthProxyRoundTripper provides a roundtripper which will add auth proxy fields to requests for authentication terminating proxy cases assuming you pull the user from the context: username is the user.Info.GetName() of the user groups is the user.Info.GetGroups() of the user extra is the user.Info.GetExtra() of the user extra can contain any additional information that the authenticator thought was interesting, for example authorization scopes.
NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
NewBearerAuthRoundTripper adds the provided bearer token to a request unless the authorization header has already been set.
NewBearerAuthRoundTripper adds the provided bearer token to a request unless the authorization header has already been set.
NewCachedFileTokenSource returns a oauth2.TokenSource reads a token from a file at a specified path and periodically reloads it.
NewImpersonatingRoundTripper will add an Act-As header to a request unless it has already been set.
SetAuthProxyHeaders stomps the auth proxy header fields.
TLSConfigFor returns a tls.Config that will provide the transport level security defined by the provided Config.
TokenSourceWrapTransport returns a WrapTransport that injects bearer tokens authentication from an oauth2.TokenSource.
Wrappers accepts any number of wrappers and returns a wrapper function that is the equivalent of calling each of them in order.

# Constants

ImpersonateGroupHeader is used to impersonate a particular group during an API server request.
ImpersonateUserExtraHeaderPrefix is a prefix for a header used to impersonate an entry in the extra map[string][]string for user.Info.
ImpersonateUserHeader is used to impersonate a particular user during an API server request.

# Structs

Config holds various options for establishing a transport.
ImpersonationConfig has all the available impersonation options.
TLSConfig holds the information needed to set up a TLS transport.

# Type aliases

WrapperFunc wraps an http.RoundTripper when a new transport is created for a client, allowing per connection behavior to be injected.