tunnel

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 25 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 bool,
	gitCredentials,
	dockerCredentials bool,
	extraPorts []string,
	gitUsername,
	gitToken string,
	log log.Logger,
) error

Types

type ContainerHandler

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

func NewContainerTunnel

func NewContainerTunnel(client client.WorkspaceClient, proxy bool, 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