terminal

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(dockerClient *client.Client, auditLog *logging.Service, logger *logging.Logger) *Handler

func (*Handler) HandleTerminalWebSocket

func (h *Handler) HandleTerminalWebSocket(c echo.Context) error

func (*Handler) Shutdown

func (h *Handler) Shutdown()

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(dockerClient *client.Client, logger *logging.Logger) *Manager

func (*Manager) CloseAllSessions

func (m *Manager) CloseAllSessions()

func (*Manager) CloseSession

func (m *Manager) CloseSession(sessionID string) error

func (*Manager) CreateSession

func (m *Manager) CreateSession(stackName, serviceName, containerID string, cols, rows int) (*Session, error)

func (*Manager) GetSession

func (m *Manager) GetSession(sessionID string) (*Session, bool)

type Session

type Session struct {
	ID          string
	StackName   string
	ServiceName string
	ContainerID string
	ExecID      string
	// contains filtered or unexported fields
}

func (*Session) Resize

func (s *Session) Resize(cols, rows int) error

func (*Session) SetCloseCallback

func (s *Session) SetCloseCallback(callback func(int))

func (*Session) SetOutputCallback

func (s *Session) SetOutputCallback(callback func([]byte))

func (*Session) Write

func (s *Session) Write(data []byte) error

type TerminalRequest

type TerminalRequest struct {
	StackName     string `json:"stack_name"`
	ServiceName   string `json:"service_name"`
	ContainerName string `json:"container_name"`
	Cols          int    `json:"cols"`
	Rows          int    `json:"rows"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL