Documentation ¶
Index ¶
- func CloneHeader(in http.Header) http.Header
- func CloneRequest(req *http.Request) *http.Request
- func CloneURL(u *url.URL) *url.URL
- func NewAlternativeServiceRoundTripper(rt http.RoundTripper) http.RoundTripper
- func NewAlternativeServiceRoundTripperWithOptions(rt http.RoundTripper, options ...AlternativeServicesOptions) http.RoundTripper
- func NewForConfig(c *rest.Config) (*kubernetes.Clientset, error)
- func NewForConfigOrDie(c *rest.Config) *kubernetes.Clientset
- func NewForConfigWithAlternativeServices(c *rest.Config, hosts []string) (*kubernetes.Clientset, error)
- type AlternativeServicesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneHeader ¶
CloneHeader creates a deep copy of an http.Header.
func CloneRequest ¶
CloneRequest creates a shallow copy of the request along with a deep copy of the Headers.
func CloneURL ¶
CloneURL creates a deep copy of an URL https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/net/http/clone.go#L22
func NewAlternativeServiceRoundTripper ¶
func NewAlternativeServiceRoundTripper(rt http.RoundTripper) http.RoundTripper
NewAlternativeServiceRoundTripper returns a roundtipper that allows to connect to the Kubernetes api server, providing client side HA using Alt-Svc headers.
func NewAlternativeServiceRoundTripperWithOptions ¶
func NewAlternativeServiceRoundTripperWithOptions(rt http.RoundTripper, options ...AlternativeServicesOptions) http.RoundTripper
NewAlternativeServiceRoundTripperWithOptions returns a roundtipper that allows to connect to the Kubernetes api server, providing client side HA using Alt-Svc headers. Allows to pass options.
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*kubernetes.Clientset, error)
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) *kubernetes.Clientset
NewForConfigOrDie creates a new Clientset for the given config and panics if there is an error in the config.
Types ¶
type AlternativeServicesOptions ¶
type AlternativeServicesOptions func(*alternativeServiceRoundTripper) *alternativeServiceRoundTripper
func WithActivePolling ¶
func WithActivePolling() AlternativeServicesOptions
WithActivePolling allows to poll the API server directly to get the list of endpoints (disabled by default)
func WithAlternativeServerName ¶
func WithAlternativeServerName(serverName string) AlternativeServicesOptions
WithAlternativeServerName sets the TLS ServerName to be used for Alternative Services
func WithAlternativeServices ¶
func WithAlternativeServices(hosts []string) AlternativeServicesOptions
WithAlternativeServices preseed the cache with alternatives services
func WithLocalhostAllowed ¶
func WithLocalhostAllowed() AlternativeServicesOptions
WithLocalhostAllowed allows to use alternative services if the destination host is localhost (disabled by default)