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.
Click to show internal directories.
Click to hide internal directories.