Documentation
¶
Overview ¶
Package workspace owns golder's integrated terminal workspace. The visible client and the persistent daemon use the same executable, in separate processes, so detaching a client does not kill its panes. The retained client and daemon are Go dependencies, not programs that must be installed on PATH.
Index ¶
- type Backend
- func (b *Backend) Close()
- func (b *Backend) Start(ctx context.Context, opts workspacecmd.Options) (workspacecmd.StartResult, error)
- func (b *Backend) Status(ctx context.Context, opts workspacecmd.Options) ([]byte, error)
- func (b *Backend) Stop(ctx context.Context, opts workspacecmd.Options) error
- func (b *Backend) Wait(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
Version string
Executable string
Input *os.File
Output *os.File
// contains filtered or unexported fields
}
Backend implements workspacecmd.Backend. One Backend owns at most one workspace; Close must be called even if printing readiness fails.
func (*Backend) Close ¶
func (b *Backend) Close()
Close stops only this backend's daemon, releases its state lease and waits for cleanup. It never signals a pid read from a file or kills another server.
func (*Backend) Start ¶
func (b *Backend) Start(ctx context.Context, opts workspacecmd.Options) (workspacecmd.StartResult, error)
Start starts the daemon and its first pane, then runs the visible client unless Headless was requested. In headless mode the caller prints readiness and calls Wait; returning from Start must not terminate a ready daemon.
func (*Backend) Status ¶
Status proves ownership through the private lifecycle endpoint, then asks the ordinary control protocol for this session's panes. No executable names, stale pid files or focused panes are used as identity evidence.