forward

package
v0.0.0-...-1614809 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNDPortForward

type CNDPortForward struct {
	StopChan       chan struct{}
	ReadyChan      chan struct{}
	IsReady        bool
	LocalPort      int
	RemotePort     int
	LocalPath      string
	DeploymentName string
	Out            *bytes.Buffer
}

CNDPortForward holds the information of the port forward

func NewCNDPortForward

func NewCNDPortForward(localPath, remoteAddress, deploymentName string) (*CNDPortForward, error)

NewCNDPortForward initializes and returns a new port forward structure

func (*CNDPortForward) Start

func (p *CNDPortForward) Start(c *kubernetes.Clientset, config *rest.Config, pod *apiv1.Pod) error

Start starts a port foward for the specified port. The function will block until p.Stop is called

func (*CNDPortForward) Stop

func (p *CNDPortForward) Stop()

Stop stops the port forwarding

Jump to

Keyboard shortcuts

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