portforwarder

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarded

type Forwarded interface {
	context.Context
	Cancel()
	Local(remote uint16) (uint16, bool)
}

type Option

type Option interface {
	With(*Options)
}

func WithWriter

func WithWriter(w io.Writer) Option

type OptionFunc

type OptionFunc func(*Options)

func (OptionFunc) With

func (f OptionFunc) With(opts *Options)

type Options

type Options struct {
	Writer io.Writer
}

type PortForwarder

type PortForwarder interface {
	ForwardPod(ctx context.Context, pod *corev1.Pod, port string, otherPorts ...string) (Forwarded, error)
}

func New

func New(cfg *rest.Config, opts ...Option) PortForwarder

Jump to

Keyboard shortcuts

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