portforward

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortForwardSpec

type PortForwardSpec struct {
	// LocalPort is the local port to forward.
	LocalPort uint32
	// RemoteAddress is the remote address to forward to.
	RemoteAddress string
	// RemotePort is the remote port to forward to.
	RemotePort uint32
}

PortForwardSpec is a port forward spec.

func ParsePortForwardSpec

func ParsePortForwardSpec(specStr string) (spec PortForwardSpec, err error)

ParsePortForwardSpec parses a port forward spec into its constituent parts.

func (PortForwardSpec) RemoteString

func (s PortForwardSpec) RemoteString() string

RemoteString returns the remote address and port as a string.

Jump to

Keyboard shortcuts

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