reconnectingpty
package v2.23.0
Go to latest Published: Jun 3, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:16 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
View Source
const (DefaultWidth = 80DefaultHeight = 24DefaultTimeout =httpapi.Duration(5 *time.Minute))
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeConfig¶
type Config struct {// AgentID is the ID of the agent to run the command in.AgentIDuuid.UUID `json:"agent_id"`// Init is the initial packet to send to the agent when launching the TTY.// If the ID is not set, defaults to a random UUID. If the width or height// is not set, defaults to 80x24. If the command is not set, defaults to// opening a login shell. Command runs in the default shell.Initworkspacesdk.AgentReconnectingPTYInit `json:"init"`// Timeout is the duration to wait for the command to exit. Defaults to// 5 minutes.Timeouthttpapi.Duration `json:"timeout"`// ExpectTimeout means we expect the timeout to be reached (i.e. the command// doesn't exit within the given timeout).ExpectTimeoutbool `json:"expect_timeout"`// ExpectOutput checks that the given string is present in the output. The// string must be present on a single line.ExpectOutputstring `json:"expect_output"`// LogOutput determines whether the output of the command should be logged.// For commands that produce a lot of output this should be disabled to// avoid loadtest OOMs. All log output is still read and discarded if this// is false.LogOutputbool `json:"log_output"`}
Click to show internal directories.
Click to hide internal directories.