Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

reconnectingpty

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:15Imported by:0

Details

Repository

github.com/coder/coder

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.Initcodersdk.WorkspaceAgentReconnectingPTYInit `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"`}

func (Config)Validate

func (cConfig) Validate()error

typeRunner

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

funcNewRunner

func NewRunner(client *codersdk.Client, cfgConfig) *Runner

func (*Runner)Run

func (r *Runner) Run(ctxcontext.Context, _string, logsio.Writer)error

Run implements Runnable.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp