Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodPortForwarder ¶
type PodPortForwarder struct {
// contains filtered or unexported fields
}
PodPortForwarder is used to forward traffic to specific pod's TCP port from local listener.
func NewPodPortForwarder ¶
func NewPodPortForwarder(kubeCfgPath string, namespace, podName string, targetPort uint16) (*PodPortForwarder, error)
NewPodPortForwarder return a new instance of PodPortForwarder.
func (*PodPortForwarder) GetLocalPort ¶
func (pf *PodPortForwarder) GetLocalPort() (uint16, error)
GetLocalPort returns the local listener's port.
func (*PodPortForwarder) Start ¶
func (pf *PodPortForwarder) Start() error
Start is to start local listener to forward traffic.
Click to show internal directories.
Click to hide internal directories.