forwarder

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder struct {
	Name string
	config.Forward
	Clients *kubernetes.Clientset
	Io      genericiooptions.IOStreams
	Ready   chan struct{}

	Namespace  string
	BindAddr   string
	BindPort   int32
	RandPort   bool
	TargetPod  string
	TargetPort int32
}

func New

func New(name string, spec config.Forward, stdout io.Writer) (*Forwarder, error)

func (*Forwarder) Run

func (fwd *Forwarder) Run(kc *kubeclient.Kubeclient, stop chan struct{}) error

Run starts the port forwarding and blocks until it is stopped.

func (*Forwarder) String

func (fwd *Forwarder) String() string

Jump to

Keyboard shortcuts

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