portforward

package
v1.3.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardOnePort

func ForwardOnePort(ctx context.Context, fw PortForwarder, ns, resourceName string, port int) (string, error)

ForwardOnePort provide a helper to forward only one port and return local endpoint

Types

type DialerFunc

type DialerFunc func(u *url.URL) httpstream.Dialer

func NewDialerFunc

func NewDialerFunc(config *rest.Config) (DialerFunc, error)

type PortForwarder

type PortForwarder interface {
	Forward(ctx context.Context, namespace, resourceName string, remotePorts []int) ([]portforward.ForwardedPort, error)
}

PortForwarder represents an interface which can forward local ports to a pod.

func NewPortForwarderForConfig

func NewPortForwarderForConfig(config *rest.Config) (PortForwarder, error)

Jump to

Keyboard shortcuts

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