kubernetes: github.com/bboreham/kubernetes/pkg/client/unversioned/portforward Index | Files

package portforward

import "github.com/bboreham/kubernetes/pkg/client/unversioned/portforward"

Package portforward adds support for SSH-like port forwarding from the client's local host to remote containers.

Index

Package Files

doc.go portforward.go

type ForwardedPort Uses

type ForwardedPort struct {
    Local  uint16
    Remote uint16
}

ForwardedPort contains a Local:Remote port pairing.

type PortForwarder Uses

type PortForwarder struct {
    Ready chan struct{}
    // contains filtered or unexported fields
}

PortForwarder knows how to listen for local connections and forward them to a remote pod via an upgraded HTTP request.

func New Uses

func New(dialer httpstream.Dialer, ports []string, stopChan <-chan struct{}) (*PortForwarder, error)

New creates a new PortForwarder.

func (*PortForwarder) Close Uses

func (pf *PortForwarder) Close()

func (*PortForwarder) ForwardPorts Uses

func (pf *PortForwarder) ForwardPorts() error

ForwardPorts formats and executes a port forwarding request. The connection will remain open until stopChan is closed.

Package portforward imports 14 packages (graph). Updated 2017-07-26. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).