portforwarder

package
v1.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortForwarder

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

func NewPortForwarder

func NewPortForwarder(config *rest.Config, namespace string, pod string, targetPort int, listenAddress string, listenPort int) (*PortForwarder, error)

NewPortForwarder creates Port Forwarder for a Pod After creating Port Forwarder object, call Start() on it to start forwarding channel and Stop() to terminate it

func (*PortForwarder) Start

func (p *PortForwarder) Start() error

Start Port Forwarding channel

func (*PortForwarder) Stop

func (p *PortForwarder) Stop()

Stop Port Forwarding channel

Jump to

Keyboard shortcuts

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