Documentation
¶
Index ¶
- func IsPersistent(localPort uint16) bool
- func IsPortForwarded(localPort uint16) bool
- func MarkPersistent(localPort uint16)
- func RunTCPForwarderViaAgentWithContext(ctx context.Context, proxyServerURL, listen, space string, port int, ...) net.Listener
- func StopForward(localPort uint16)
- func StoreListener(localPort uint16, listener net.Listener)
- func UnmarkPersistent(localPort uint16)
- type ForwardInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPersistent ¶ added in v0.24.0
IsPersistent checks if a port forward is marked as persistent.
func IsPortForwarded ¶
IsPortForwarded checks if a port is already being forwarded
func MarkPersistent ¶ added in v0.24.0
func MarkPersistent(localPort uint16)
MarkPersistent marks a port forward as persistent.
func RunTCPForwarderViaAgentWithContext ¶
func RunTCPForwarderViaAgentWithContext(ctx context.Context, proxyServerURL, listen, space string, port int, token string, skipTLSVerify bool) net.Listener
RunTCPForwarderViaAgentWithContext runs a TCP forwarder via the agent proxy server
func StoreListener ¶
StoreListener stores the listener for a port forward (called after listener is created)
func UnmarkPersistent ¶ added in v0.24.0
func UnmarkPersistent(localPort uint16)
UnmarkPersistent removes the persistent mark from a port forward.
Types ¶
type ForwardInfo ¶
type ForwardInfo struct {
LocalPort uint16
Space string
RemotePort uint16
Cancel context.CancelFunc
Listener net.Listener
}
ForwardInfo holds information about an active port forward
func GetForward ¶
func GetForward(localPort uint16) (*ForwardInfo, bool)
GetForward returns info about a specific port forward
func ListForwards ¶
func ListForwards() []*ForwardInfo
ListForwards returns all active port forwards
func StartForward ¶
func StartForward(localPort, remotePort uint16, space string, cancel context.CancelFunc) *ForwardInfo
StartForward starts a new port forward and returns the info
Click to show internal directories.
Click to hide internal directories.