Documentation
¶
Index ¶
- func GetTerminalSize() (int, int, error)
- type Manager
- func (m *Manager) CloseAllSessions()
- func (m *Manager) CloseSession(sessionID string) error
- func (m *Manager) ExecCommand(execID string, websocketURL string, command []string) error
- func (m *Manager) GetSession(sessionID string) (*Session, bool)
- func (m *Manager) StartExecSession(execID string, websocketURL string, interactive bool) (*Session, error)
- func (m *Manager) StartShellSession(sessionID string, websocketURL string) (*Session, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTerminalSize ¶
GetTerminalSize returns the current terminal size
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles terminal sessions
func (*Manager) CloseAllSessions ¶
func (m *Manager) CloseAllSessions()
CloseAllSessions closes all active sessions
func (*Manager) CloseSession ¶
CloseSession closes a session
func (*Manager) ExecCommand ¶
ExecCommand executes a single command (non-interactive)
func (*Manager) GetSession ¶
GetSession returns a session by ID
type Session ¶
Session represents a terminal session
func (*Session) SendCommand ¶
SendCommand sends a command to the session
func (*Session) WaitForCompletion ¶
func (s *Session) WaitForCompletion()
WaitForCompletion waits for the session to complete
Click to show internal directories.
Click to hide internal directories.