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