Versions in this module Expand all Collapse all v0 v0.14.6 Oct 10, 2026 v0.14.5 Oct 10, 2026 Changes in this version + const BlockController_Cmd + const BlockController_Shell + const BlockController_Tsunami + const ConnType_Local + const ConnType_Ssh + const ConnType_Wsl + const DefaultGracefulKillWait + const DefaultHtmlMaxFileSize + const DefaultTermMaxFileSize + const DefaultTimeout + const LocalConnVariant_GitBash + const MaxInitScriptSize + const Status_Done + const Status_Init + const Status_Running + func CheckConnStatus(blockId string) error + func DestroyBlockController(blockId string) + func HandleAppendBlockFile(blockId string, blockFile string, data []byte) error + func HandleTruncateBlockFile(blockId string) error + func InitBlockController() + func ResyncController(ctx context.Context, tabId string, blockId string, rtOpts *waveobj.RuntimeOpts, ...) error + func SendInput(blockId string, inputUnion *BlockInputUnion) error + func StopAllBlockControllersForShutdown() + type BlockControllerRuntimeStatus struct + BlockId string + ShellProcConnName string + ShellProcExitCode int + ShellProcStatus string + TsunamiPort int + Version int64 + func GetBlockControllerRuntimeStatus(blockId string) *BlockControllerRuntimeStatus + type BlockInputUnion struct + InputData []byte + SigName string + TermSize *waveobj.TermSize + type ConnUnion struct + ConnName string + ConnType string + HomeDir string + ShellOpts []string + ShellPath string + ShellType string + SshConn *conncontroller.SSHConn + WshEnabled bool + WslConn *wslconn.WslConn + type Controller interface + GetConnName func() string + GetRuntimeStatus func() *BlockControllerRuntimeStatus + SendInput func(input *BlockInputUnion) error + Start func(ctx context.Context, blockMeta waveobj.MetaMapType, ...) error + Stop func(graceful bool, newStatus string, destroy bool) + func MakeDurableShellController(tabId string, blockId string, controllerType string, connName string) Controller + func MakeShellController(tabId string, blockId string, controllerType string, connName string) Controller + func MakeTsunamiController(tabId string, blockId string, connName string) Controller + type DurableShellController struct + BlockDef *waveobj.BlockDef + BlockId string + ConnName string + ControllerType string + InputSessionId string + JobId string + LastKnownStatus string + Lock *sync.Mutex + TabId string + VersionTs utilds.VersionTs + func (dsc *DurableShellController) GetConnName() string + func (dsc *DurableShellController) GetRuntimeStatus() *BlockControllerRuntimeStatus + func (dsc *DurableShellController) SendInput(inputUnion *BlockInputUnion) error + func (dsc *DurableShellController) Start(ctx context.Context, blockMeta waveobj.MetaMapType, ...) error + func (dsc *DurableShellController) Stop(graceful bool, newStatus string, destroy bool) + func (dsc *DurableShellController) WithLock(f func()) + type RunShellOpts struct + TermSize waveobj.TermSize + type ShellController struct + BlockDef *waveobj.BlockDef + BlockId string + ConnName string + ControllerType string + Lock *sync.Mutex + ProcExitCode int + ProcStatus string + RunLock *atomic.Bool + ShellInputCh chan *BlockInputUnion + ShellProc *shellexec.ShellProc + TabId string + VersionTs utilds.VersionTs + func (sc *ShellController) DoRunShellCommand(logCtx context.Context, rc *RunShellOpts, blockMeta waveobj.MetaMapType) error + func (sc *ShellController) GetConnName() string + func (sc *ShellController) GetRuntimeStatus() *BlockControllerRuntimeStatus + func (sc *ShellController) LockRunLock() bool + func (sc *ShellController) SendInput(inputUnion *BlockInputUnion) error + func (sc *ShellController) Start(ctx context.Context, blockMeta waveobj.MetaMapType, ...) error + func (sc *ShellController) Stop(graceful bool, newStatus string, destroy bool) + func (sc *ShellController) UnlockRunLock() + func (sc *ShellController) UpdateControllerAndSendUpdate(updateFn func() bool) + func (sc *ShellController) WithLock(f func()) + type TsunamiAppProc struct + Cmd *exec.Cmd + LineBuffer *utilds.MultiReaderLineBuffer + Port int + StdinWriter io.WriteCloser + WaitCh chan struct{} + WaitRtn error + type TsunamiController struct + func (c *TsunamiController) GetConnName() string + func (c *TsunamiController) GetRuntimeStatus() *BlockControllerRuntimeStatus + func (c *TsunamiController) SendInput(input *BlockInputUnion) error + func (c *TsunamiController) Start(ctx context.Context, blockMeta waveobj.MetaMapType, ...) error + func (c *TsunamiController) Stop(graceful bool, newStatus string, destroy bool) + func (c *TsunamiController) WithStatusLock(fn func())