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
Click to show internal directories.
Click to hide internal directories.