tunnel

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInContainer added in v0.1.0

func RunInContainer(
	ctx context.Context,
	workspaceClient client.WorkspaceClient,
	devPodConfig *config.Config,
	hostClient,
	containerClient *ssh.Client,
	user string,
	forwardPorts,
	gitCredentials,
	dockerCredentials bool,
	extraPorts []string,
	log log.Logger,
) error

Types

type ContainerHandler

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

func NewContainerTunnel

func NewContainerTunnel(client client.WorkspaceClient, log log.Logger) *ContainerHandler

func (*ContainerHandler) Run

func (c *ContainerHandler) Run(ctx context.Context, runInHost Handler, runInContainer RunInContainerHandler) error

type Handler

type Handler func(ctx context.Context, client *ssh.Client) error

type RunInContainerHandler added in v0.1.0

type RunInContainerHandler func(ctx context.Context, hostClient, containerClient *ssh.Client) error

Jump to

Keyboard shortcuts

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