Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance interface { ID() string Key() store.Key Container() string Command() string Scrollback() []byte Read(size int) ([]byte, error) Write(key []byte) error Resize(cols, rows uint16) Stop() Active() bool SetExitMessage(string) ExitMessage() string CreatedAt() time.Time PTY() PTY }
Instance defines the interface to a single exec instance.
type Manager ¶
type Manager interface { List(namespace string) []Instance Get(id string) (Instance, bool) Delete(id string) Create(ctx context.Context, logger log.Logger, key store.Key, container string, command string) (Instance, error) Select(ctx context.Context) chan Instance ForceUpdate(id string) SendScrollback(id string) bool SetScrollback(id string, send bool) StopAll() error }
Manager defines the interface for querying terminal instance.
func NewTerminalManager ¶
func NewTerminalManager(ctx context.Context, client cluster.ClientInterface, objectStore store.Store) (Manager, error)
NewTerminalManager creates a concrete TerminalMananger
type PTY ¶
type PTY interface { io.Reader io.Writer remotecommand.TerminalSizeQueue }
Click to show internal directories.
Click to hide internal directories.