socat

package
v0.8.34 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Manage socat network routers for remote docker instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(cli dctr.CLI) *Controller

func (*Controller) ConnectRemoteDockerPort

func (c *Controller) ConnectRemoteDockerPort(ctx context.Context, port int) error

Connect a port on the local machine to a port on a remote docker machine.

func (*Controller) StartLocalPortforwarder

func (c *Controller) StartLocalPortforwarder(ctx context.Context, port int) error

Create a port-forwarding server on the local machine, forwarding connections to the same port on the remote Docker server.

func (*Controller) StartRemotePortforwarder

func (c *Controller) StartRemotePortforwarder(ctx context.Context) error

Create a port-forwarding server on the same machine that's running Docker. This server accepts connections and routes them to localhost ports on the same machine.

Jump to

Keyboard shortcuts

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