Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + const LoftTSNetDomain + const RunnerProxySocket + const TSPortForwardPort + func CheckDerpConnection(ctx context.Context, baseUrl *url.URL) error + func GetClientHostname(userName string) (string, error) + func GetEnvOrDefault(envVar, defaultVal string) string + func GetURL(host string, port int) string + func GetWorkspaceHostname(name, namespace string) string + func ParseWorkspaceHostname(hostname string) (name string, project string, err error) + func RemoveProtocol(hostPath string) string + func WaitForSSHClient(ctx context.Context, dialer Dialer, network, address string, user string, ...) (*ssh.Client, error) + func WaitHostReachable(ctx context.Context, lc *local.Client, addr Addr, maxRetries int, ...) error + func WatchNetmap(ctx context.Context, lc *local.Client, ...) error + type Addr struct + func NewAddr(rawHost string, port int) Addr + func (a Addr) Host() string + func (a Addr) Network() string + func (a Addr) Port() int + func (a Addr) String() string + type ConnTrackingFunc func(address string) + type Dialer func(ctx context.Context, network, address string) (net.Conn, error) + type WorkspaceServer struct + func NewWorkspaceServer(config *WorkspaceServerConfig, logger log.Logger) *WorkspaceServer + func (s *WorkspaceServer) Dial(ctx context.Context, network, addr string) (net.Conn, error) + func (s *WorkspaceServer) Start(ctx context.Context) error + func (s *WorkspaceServer) Stop() + type WorkspaceServerConfig struct + AccessKey string + Client client.Client + LogF func(format string, args ...any) + PlatformHost string + RootDir string + WorkspaceHost string