portforward

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 10 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 NewPortForward

func NewPortForward(options ...PortForwarderOption) (*PortForwarder, error)

func (*PortForwarder) PortForward

func (f *PortForwarder) PortForward(
	ctx context.Context,
	namespace,
	pod string,
	port int,
) (int, chan struct{}, error)

type PortForwarderOption

type PortForwarderOption func(forwarder *PortForwarder)

func WithOutput

func WithOutput(out io.Writer, errOut io.Writer) PortForwarderOption

func WithRESTConfig

func WithRESTConfig(restConfig *rest.Config) PortForwarderOption

Jump to

Keyboard shortcuts

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