portforward

package
v0.25.35 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

type Tunnel struct {
	Local     int
	Remote    int
	Namespace string
	Resource  string
	Name      string
	Out       io.Writer
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel(opt TunnelOptions) *Tunnel

func (*Tunnel) Close

func (t *Tunnel) Close()

func (*Tunnel) ForwardPort

func (t *Tunnel) ForwardPort() error

type TunnelOptions

type TunnelOptions struct {
	Client    rest.Interface
	Config    *rest.Config
	Resource  string
	Name      string
	Namespace string
	Remote    int
}

Jump to

Keyboard shortcuts

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