Documentation ¶
Index ¶
- func NewInprocessKubeProxyTransport(handler http.Handler) http.RoundTripper
- func NewKubeApiProxyTransport(cfg *kube_rest.Config) (http.RoundTripper, error)
- func NewKubeProxyHandler(cfg *rest.Config) (http.Handler, error)
- func NewServiceProxyTransport(kubeApiServer http.RoundTripper, namespace, name string) http.RoundTripper
- type Client
- type KubeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInprocessKubeProxyTransport ¶
func NewInprocessKubeProxyTransport(handler http.Handler) http.RoundTripper
func NewKubeApiProxyTransport ¶
func NewKubeApiProxyTransport(cfg *kube_rest.Config) (http.RoundTripper, error)
func NewKubeProxyHandler ¶
NewKubeProxyHandler creates a proxy server which is similar to `kubectl proxy` but, unlike it, is not exposed outside of the process.
func NewServiceProxyTransport ¶
func NewServiceProxyTransport(kubeApiServer http.RoundTripper, namespace, name string) http.RoundTripper
Types ¶
type KubeConfig ¶
type KubeConfig interface { GetFilename() string GetCurrentContext() string NewClient() (Client, error) NewServiceProxyTransport(namespace, service string) (http.RoundTripper, error) }
func DetectKubeConfig ¶
func DetectKubeConfig() (KubeConfig, error)
func GetKubeConfig ¶
func GetKubeConfig(kubeconfig, context, namespace string) (KubeConfig, error)
Click to show internal directories.
Click to hide internal directories.