tunnelserver

package
v0.6.4-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.5.5

func New(log log.Logger, options ...Option) *tunnelServer

func NewStreamReader

func NewStreamReader(stream tunnel.Tunnel_StreamWorkspaceClient, log log.Logger) io.Reader

func NewStreamWriter

func NewStreamWriter(stream tunnel.Tunnel_StreamWorkspaceServer, log log.Logger) io.Writer

func NewTunnelClient

func NewTunnelClient(reader io.Reader, writer io.WriteCloser, exitOnClose bool, exitCode int) (tunnel.TunnelClient, error)

func NewTunnelLogger

func NewTunnelLogger(ctx context.Context, client tunnel.TunnelClient, debug bool) log.Logger

func RunProxyServer

func RunProxyServer(ctx context.Context, client tunnel.TunnelClient, reader io.Reader, writer io.WriteCloser, allowGitCredentials, allowDockerCredentials bool, gitUsername, gitToken string, log log.Logger) (*config.Result, error)

func RunRunnerServer added in v0.5.21

func RunRunnerServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, allowGitCredentials, allowDockerCredentials bool, gitUsername, gitToken string, log log.Logger) error

func RunServicesServer added in v0.4.0

func RunServicesServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, allowGitCredentials, allowDockerCredentials bool, forwarder netstat.Forwarder, log log.Logger, options ...Option) error

func RunSetupServer added in v0.4.0

func RunSetupServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, allowGitCredentials, allowDockerCredentials bool, mounts []*config.Mount, log log.Logger, options ...Option) (*config.Result, error)

func RunUpServer added in v0.4.0

func RunUpServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, allowGitCredentials, allowDockerCredentials bool, workspace *provider2.Workspace, log log.Logger, options ...Option) (*config.Result, error)

Types

type Option added in v0.5.5

type Option func(*tunnelServer) *tunnelServer

func WithAllowDockerCredentials added in v0.5.5

func WithAllowDockerCredentials(allowDockerCredentials bool) Option

func WithAllowGitCredentials added in v0.5.5

func WithAllowGitCredentials(allowGitCredentials bool) Option

func WithForwarder added in v0.5.5

func WithForwarder(forwarder netstat.Forwarder) Option

func WithGitCredentialsOverride added in v0.5.5

func WithGitCredentialsOverride(username string, token string) Option

func WithMounts added in v0.5.5

func WithMounts(mounts []*config.Mount) Option

func WithWorkspace added in v0.5.5

func WithWorkspace(workspace *provider2.Workspace) Option

Jump to

Keyboard shortcuts

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