tunnelserver

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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 RunServicesServer

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

func RunSetupServer

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

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

type Option func(*tunnelServer) *tunnelServer

func WithAllowDockerCredentials

func WithAllowDockerCredentials(allowDockerCredentials bool) Option

func WithAllowGitCredentials

func WithAllowGitCredentials(allowGitCredentials bool) Option

func WithAllowKubeConfig

func WithAllowKubeConfig(allow bool) Option

func WithForwarder

func WithForwarder(forwarder netstat.Forwarder) Option

func WithMounts

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

func WithPlatformOptions

func WithPlatformOptions(options *devpod.PlatformOptions) Option

func WithWorkspace

func WithWorkspace(workspace *provider2.Workspace) Option

Jump to

Keyboard shortcuts

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