Documentation
¶
Overview ¶
Package server provides session picker UI for SSH and Web servers.
Package server provides SSH server functionality for TERGO.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartSSHServer ¶
func StartSSHServer(ctx context.Context, cfg *SSHServerConfig) error
StartSSHServer initializes and runs the SSH server
Types ¶
type SSHServerConfig ¶
type SSHServerConfig struct {
Host string
Port string
KeyPath string
DefaultSession string // If set, all connections attach to this session
Ephemeral bool // If true, don't use daemon (old behavior)
Version string // For daemon handshake
}
SSHServerConfig holds configuration for the SSH server.
type SessionPicker ¶
type SessionPicker struct {
// contains filtered or unexported fields
}
SessionPicker is a Bubble Tea model for selecting or creating a session.
func NewSessionPicker ¶
func NewSessionPicker(sessions []session.SessionInfo) *SessionPicker
NewSessionPicker creates a new session picker with the given session list.
func (*SessionPicker) Result ¶
func (m *SessionPicker) Result() *SessionPickerResult
Result returns the user's selection after the picker has quit.
type SessionPickerResult ¶
type SessionPickerResult struct {
SessionName string // Selected or new session name
CreateNew bool // Whether to create a new session
Cancelled bool // User cancelled the picker
}
SessionPickerResult represents the user's choice from the session picker.
Click to show internal directories.
Click to hide internal directories.