execrelay

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package execrelay connects interactive exec clients (dashboard terminal, synctl exec) to sessions on agents, multiplexed on the agent stream.

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeOffline = errors.New("the task's node is not connected")

ErrNodeOffline means the task's node is not connected.

Functions

This section is empty.

Types

type Relay

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

func New

func New(gw *agentgw.Gateway) *Relay

func (*Relay) Hooks

func (r *Relay) Hooks() agentgw.Hooks

func (*Relay) Open

func (r *Relay) Open(nodeID, taskID string, command []string, tty bool, cols, rows uint32) (*Session, error)

Open starts command in the task's container.

func (*Relay) OpenHost

func (r *Relay) OpenHost(nodeID string, command []string, tty bool, cols, rows uint32) (*Session, error)

OpenHost starts command on the node itself, outside any container (a node shell). Agents run with --no-host-shell refuse it.

type Session

type Session struct {
	ID string

	// Out receives output; it is closed after the exit message.
	Out chan *agentv1.ExecOutput
	// contains filtered or unexported fields
}

Session is one exec on one node.

func (*Session) Close

func (s *Session) Close()

Close ends the session on the node.

func (*Session) CloseStdin

func (s *Session) CloseStdin() error

CloseStdin signals end of input to the command.

func (*Session) Resize

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

func (*Session) Stdin

func (s *Session) Stdin(b []byte) error

Jump to

Keyboard shortcuts

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