func NewTunnel(
	client rest.Interface,
	c *rest.Config,
	kind TunnelKind,
	namespace,
	target,
	remotePort string) *Tunnel {

	return &Tunnel{
		client:     client,
		config:     c,
		Kind:       kind,
		Namespace:  namespace,
		Out:        ioutil.Discard,
		readyChan:  make(chan struct{}, 1),
		RemotePort: remotePort,
		stopChan:   make(chan struct{}, 1),
		Target:     target,
	}
}
// NewTunnel constructs a new kubernetes tunnel for the provided information
NewTunnel constructs a new kubernetes tunnel for the provided information
// NewTunnel constructs a new kubernetes tunnel for the provided information
func NewTunnel(
	client rest.Interface,
	c *rest.Config,
	kind TunnelKind,
	namespace,
	target,
	remotePort string) *Tunnel {
	return &Tunnel{
		client:     client,
		config:     c,
		Kind:       kind,
		Namespace:  namespace,
		Out:        ioutil.Discard,
		readyChan:  make(chan struct{}, 1),
		RemotePort: remotePort,
		stopChan:   make(chan struct{}, 1),
		Target:     target,
	}
}
func NewTunnel ( client rest . Interface , c * rest . Config , kind TunnelKind , namespace , target , remotePort string ) * Tunnel { return & Tunnel { client : client , config : c , Kind : kind , Namespace : namespace , Out : ioutil . Discard , readyChan : make ( chan struct { } , 1 ) , RemotePort : remotePort , stopChan : make ( chan struct { } , 1 ) , Target : target , } }
NewTunnel constructs a new kubernetes tunnel for the provided information
NewTunnel constructs a new kubernetes tunnel for the provided information