tunnel

package
v0.2.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTunnel added in v0.2.0

func NewTunnel(ctx context.Context, tunnel Tunnel, handler Handler) error

func RunInContainer added in v0.1.0

func RunInContainer(
	ctx context.Context,
	devPodConfig *config.Config,
	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, handler Handler) error

type Handler

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

type Tunnel added in v0.2.0

type Tunnel func(ctx context.Context, stdin io.Reader, stdout io.Writer) error

Jump to

Keyboard shortcuts

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