Documentation
¶
Index ¶
- func New(options ...Option) *tunnelServer
- func NewStreamReader(stream tunnel.Tunnel_StreamWorkspaceClient) io.Reader
- func NewStreamWriter(stream tunnel.Tunnel_StreamWorkspaceServer) io.Writer
- func NewTunnelClient(reader io.Reader, writer io.WriteCloser, exitOnClose bool, exitCode int) (tunnel.TunnelClient, error)
- func RunServicesServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, ...) error
- func RunSetupServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, ...) (*config.Result, error)
- func RunUpServer(ctx context.Context, reader io.Reader, writer io.WriteCloser, ...) (*config.Result, error)
- type Logger
- type Option
- func WithAllowDockerCredentials(allowDockerCredentials bool) Option
- func WithAllowGitCredentials(allowGitCredentials bool) Option
- func WithAllowKubeConfig(allow bool) Option
- func WithForwarder(forwarder netstat.Forwarder) Option
- func WithMounts(mounts []*config.Mount) Option
- func WithPlatformOptions(options *devsy.PlatformOptions) Option
- func WithWorkspace(workspace *provider2.Workspace) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamReader ¶
func NewStreamReader(stream tunnel.Tunnel_StreamWorkspaceClient) io.Reader
func NewStreamWriter ¶
func NewStreamWriter(stream tunnel.Tunnel_StreamWorkspaceServer) io.Writer
func NewTunnelClient ¶
func NewTunnelClient( reader io.Reader, writer io.WriteCloser, exitOnClose bool, exitCode int, ) (tunnel.TunnelClient, error)
func RunServicesServer ¶
func RunSetupServer ¶
Types ¶
type Logger ¶ added in v1.1.0
type Logger interface {
Debugf(format string, args ...any)
Info(args ...any)
Infof(format string, args ...any)
Warnf(format string, args ...any)
}
Logger is the minimal logging interface used by workspace initialization. It is implemented by tunnelLogger, which sends log messages through the tunnel protocol back to the client.
func NewTunnelLogger ¶
type Option ¶
type Option func(*tunnelServer) *tunnelServer
func WithAllowGitCredentials ¶
func WithAllowKubeConfig ¶
func WithForwarder ¶
func WithMounts ¶
func WithPlatformOptions ¶
func WithPlatformOptions(options *devsy.PlatformOptions) Option
func WithWorkspace ¶
Click to show internal directories.
Click to hide internal directories.