portforward

package
v0.3.35 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package portforward watches a port on a ProxyReplica and forwards from a local port to the remote port on the ProxyReplica.

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
}

PortForwarder forwards a local port to a remote port.

func NewPortForwarder

func NewPortForwarder(rc *rest.Config, proxyName, replicaName, cname string) (*PortForwarder, error)

NewPortForwarder creates a new PortForwarder. proxyName specifies a Proxy to watch and cname is the container to forward to. The local port is the same as the remote port if available.

func (*PortForwarder) Run

func (pf *PortForwarder) Run(
	ctx context.Context,
) error

Run runs a port forwarder watch loop.

Jump to

Keyboard shortcuts

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