kubeproxy

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an HTTP client using Kubernetes API server as a proxy. With this client you can execute HTTP methods on any k8s pod from outside the cluster. No need to manually execute `kubectl port-forward`, `kubectl proxy` or something similar.

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) NewRequest

func (c *Client) NewRequest(method, path string, body io.Reader) (*http.Request, error)

type HTTPProxy

type HTTPProxy struct {
	// contains filtered or unexported fields
}

func New

func New(config *rest.Config) (*HTTPProxy, error)

func (*HTTPProxy) NewClient

func (p *HTTPProxy) NewClient(namespace string, pod string, port int) *Client

func (*HTTPProxy) NewClientWithPath

func (p *HTTPProxy) NewClientWithPath(namespace string, pod string, port int, path string) *Client

func (*HTTPProxy) NewSecureClient

func (p *HTTPProxy) NewSecureClient(namespace string, pod string, port int) *Client

func (*HTTPProxy) NewSecureClientWithPath

func (p *HTTPProxy) NewSecureClientWithPath(namespace string, pod string, port int, path string) *Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL